المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Differentiate Restart vs Shut Down, StandBy vs Hibernate



C# Programming
07-11-2009, 02:11 AM
Is there a way to know whether windows is doing a Restart OR a Shut Down?
I mean by any means in the world?

It's easy to catch the WM_ENDSESSION message but it regroups these both modes.

Also is there a way to do the same thing but with Stand By and Hibernate??

I can't and won't believe there is no way whatsoever to do this.

It's another of these things that seems ridiculously easy but turn out to be an hardcore nightmare when you attempt it.

Thanks

Olograph