Paul_B;439862 Wrote:
> You've probably found the following but just in case the following
> articles seem like a good summary. Interesting to know that some
> functions are not really distinguished by the OS especially hybrid sleep
> in Vista:
>
> Summary discussion
> http://www.ureader.com/msg/14743607.aspx
>
> Code examples:
> http://www.codeproject.com/KB/system/OSEvents.aspx
Yes...windows isn't anxious to let you know if it's going to be sleep
or hibernation or hybrid. So my monitor app is reduced to:
Code:
--------------------
switch (message)
{
case WM_POWERBROADCAST:
switch (wParam)
{
case PBT_APMQUERYSUSPEND:
//XP only..don't mess with this..
//return BROADCAST_QUERY_DENY;
return TRUE;
case PBT_APMSUSPEND:
SendCLIRequest(lpAppData,
lpAppData->szSleepCLIStr);
return 0;
}
break;
// Shutdown Hook
case WM_QUERYENDSESSION:
//Send CLI request..
SendCLIRequest(lpAppData, lpAppData->szExitWCLIStr);
return 0;
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
--------------------
..and that's about all that's possible.
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins