|
-
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
-
Oct 2nd, 2001, 06:36 AM
#2
Have I stumped you Guru's?
I am surprised that there has been no reply yet, do you require more information?
This has made me a little PISSED at VB6 and I am trying .NET to see if I can get it to do it but .NET is a very big maze of new features and ways of doing things.
Hope to hear from someone soon 
Regards,
-
Dec 1st, 2001, 03:21 AM
#3
Windows 2000 has been out a bit longer now any update on this topic?
I am still stuck on my project due to this little glitch... WinXP seems to be OK which is great! but Win2000 nuppers, The QueryUnload event does occur if the user clicks on start > shut down then selects anything in there.
If they use the power button the front of the machine (ATX) Windows comes up and says it is shutting down and does succesfully but doesn't seem to warn any programs? this doesn't sound right... I tried to capture any windows messages that are being passed around before my application gets cut but none of them seemed to link with the windows environment shutting down.
I could really do with a guru to help me with this... as I am stumped and the biggest annonance is I have just added lots of features to the program like 6 months worth of work and now this happens! GRRRR
Disgruntled VB Programmer.
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
|