News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

initialization failure

Started by xiahan, April 18, 2012, 09:07:08 PM

Previous topic - Next topic

xiahan



libmain proc hInstDLL:DWORD, reason:DWORD, unused:DWORD

        mov eax,hInstDLL
        mov hDll,eax       
        PrivateMsg db "WM_HOOKEX_KK",0

        .if reason == 1
           
            invoke DisableThreadLibraryCalls,hInstDLL
            invoke RegisterWindowMessage,addr PrivateMsg
    mov WM_HOOKEX,eax
            mov eax,1           
        .endif

        ret

libmain Endp

.....


end libmain




is there any problem around here, Windows just keep telling me initialization failure everytime i load the dll.  PS: i upload the entire file

qWord

let me say it this way: you are using very strange instruction - most probably the CPU doesn't know them.

Also, I've got the feeling that you haven't read and understand the forum rules...
FPU in a trice: SmplMath
It's that simple!

xiahan