This is the error I am recieving when compiling the following code.
.386
.model flat,stdcall
option casemap:none
include \masm32\include\WINDOWS.inc
include \masm32\include\kernel32.inc
EnableTheming PROTO :DWORD
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\uxtheme.lib
.data
.data?
.const
IDI_LOGO equ 500
.code
Start:
INVOKE EnableTheming,TRUE ;uxtheme.dll
INVOKE ExitProcess,eax ;kernel32.dll
END Start
I built the uxtheme.lib according to Make .LIB from dll (http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q131/3/13.asp&NoWebContent=1)
To use invoke, you need to have a prototype of the function, otherwise you need to use push args and call Function.
In the best case you can get ,you can use
EnableTheming PROTO C:VARARG
Otherwise ,you will have to load the DLL ,find the function and calling it.
Thanks shaka
EnableTheming PROTO C:DWORD
worked.