Hello Everybody,

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
Posted on 2005-05-10 23:40:22 by czDrillard
Try using WM_QUERYENDSESSION instead of WM_ENDSESSION
Posted on 2005-05-11 00:19:54 by ti_mo_n
Thanks for your reply,

Tried .ELSEIF uMsg==WM_QUERYENDSESSION but failed to trap message.  Seems strange, huh?

best regards,

czDrillard
Posted on 2005-05-11 01:33:09 by czDrillard