reactos/dll/win32/msi/msvchelper.h
David Quintana 1bc1185f8a Sync with trunk r64222.
svn path=/branches/shell-experiments/; revision=64225
2014-09-22 12:51:09 +00:00

26 lines
458 B
C

#ifdef __i386__
#define __ASM_DEFINE_FUNC(name,suffix,code)
typedef unsigned int (__stdcall *__MSVC__MsiCustomActionEntryPoint)(unsigned int);
static
__declspec(naked)
unsigned int
__cdecl
CUSTOMPROC_wrapper(__MSVC__MsiCustomActionEntryPoint proc, unsigned int handle)
{
__asm
{
push ebp
mov ebp, esp
push dword ptr [ebp + 12]
mov eax, dword ptr [ebp + 8]
call eax
leave
ret
}
}
#endif