.386p CODE32 SEGMENT DWORD PUBLIC USE32 'CODE' EXTRN DosQueryModuleHandle:PROC PUBLIC _DosQueryModuleHandle _DosQueryModuleHandle PROC NEAR push fs mov eax, 0150bh mov fs, eax push dword ptr [esp+12] push dword ptr [esp+12] call DosQueryModuleHandle add esp, 8 pop fs ret _DosQueryModuleHandle ENDP CODE32 ENDS END