Re: How to detect computer restart/reboot programmatically?



To accomplish Kellie proposition , when you receive WM_QUERYENDSESSION close
gracefully socket on the peer so on monitoring computer you'll receive that
Arkady

"Kellie Fitton" <KELLIEFITTON@xxxxxxxxx> wrote in message
news:1129013839.333809.137810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> Try to handle the windows message WM_QUERYENDSESSION
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/wm_queryendsession.asp
>
> Kellie.
>


.