|
-
Sep 27th, 2001, 06:14 AM
#1
QueryUnload and Win2000 (Restart and Powered Down)
I have a program that logs some information when the Windows Session is being shutdown. This has been fine for Windows 9x but on Windows 2000 it appears Windows does not tell the program that it is shutting down it just drops!
Now if I use the Start > Shut Down method and select Shut Down from the list the Query Unload event fires but if I choose Restart or if I press the power button of the machine it does not fire.
I have checked and the power button is not putting the computer in Hibernation it is physically shutting down though ie. when you turn the PC on again it runs though the normal start up sequence.
I have used some code here to capture windows messages to try and capture the WM_QUERYENDSESSION message but have found it doesn't send that message.
Could someone please help as this feature? has totally brought my project to a halt.
Regards,
Michael Proctor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|