Hello Everybody,
I want my program to run (Windows XP) at shutdown so I'm trapping the WM_ENDSESSION message like this:
This used to work in Windows 98 but seems to be broke in xp.? I thought it worked before with xp but maybe I'm wrong...
Any ideas or suggestions much appreciated.
Btw, the int 03h is just a breakpoint for my debugger.? It doesn't break. :sad:
best regards,
czDrillard
I want my program to run (Windows XP) at shutdown so I'm trapping the WM_ENDSESSION message like this:
.ELSEIF uMsg==WM_ENDSESSION
int 03h
? ? ? ? ?mov eax,wParam
? ? ? ? ? ?.if eax==TRUE
? ? ? ? ? ? ? invoke someProc
? ? ? ? ? .endif
This used to work in Windows 98 but seems to be broke in xp.? I thought it worked before with xp but maybe I'm wrong...
Any ideas or suggestions much appreciated.
Btw, the int 03h is just a breakpoint for my debugger.? It doesn't break. :sad:
best regards,
czDrillard
Try using WM_QUERYENDSESSION instead of WM_ENDSESSION
Thanks for your reply,
Tried .ELSEIF uMsg==WM_QUERYENDSESSION but failed to trap message. Seems strange, huh?
best regards,
czDrillard
Tried .ELSEIF uMsg==WM_QUERYENDSESSION but failed to trap message. Seems strange, huh?
best regards,
czDrillard