[MSI]
[reactos.git] / reactos / dll / win32 / msi / msvchelper.h
1
2 #ifdef __i386__
3 #define __ASM_DEFINE_FUNC(name,suffix,code)
4
5 typedef unsigned int (__stdcall *__MSVC__MsiCustomActionEntryPoint)(unsigned int);
6
7 static
8 __declspec(naked)
9 unsigned int
10 __cdecl
11 CUSTOMPROC_wrapper(__MSVC__MsiCustomActionEntryPoint proc, unsigned int handle)
12 {
13 __asm
14 {
15 push ebp
16 mov ebp, esp
17 push dword ptr [ebp + 12]
18 mov eax, dword ptr [ebp + 8]
19 call eax
20 leave
21 ret
22 }
23 }
24
25 #endif