11 Nov
2003
11 Nov
'03
1:51 p.m.
Can anybody help me write the function for Linux : __declspec(naked) BOOL WINAPI _InitCommonControlsEx(INITCOMMONCONTROLSEX* lpInitCtrls) { if(!dwLPA_InitCommonControlsEx) { __asm mov eax, 0 __asm ret 4 } else { __asm jmp dwLPA_InitCommonControlsEx } } May be : __declspec(naked) BOOL WINAPI _InitCommonControlsEx(WINGS_INITCOMMONCONTROLSEX* lpInitCtrls) { if(!dwLPA_InitCommonControlsEx) { __asm__ __volatile__("movl 0, %eax"); __asm__ __volatile__("ret"); } else { __asm__ __volatile__("jmp %0" : : "q"(dwLPA_InitCommonControlsEx)); } }