开发者

Laptop/Desktop Sleep Events

开发者 https://www.devze.com 2023-01-08 19:55 出处:网络
I was wondering if there was an event that is triggered when a laptop or desktop goes into sleep mode.

I was wondering if there was an event that is triggered when a laptop or desktop goes into sleep mode.

An example 开发者_如何学编程would be: When a user is working on his/her laptop and he/she flips the monitor down, the laptop goes into sleep mode.

Or when a user goes to Start → Shutdown → Sleep.

Are there any events built into .NET that determine this?


Check this CodeProject article and these MSDN reference articles.

To find out C# DLLImport declarations visit pinvoke.net

UPD

Also check here

0

精彩评论

暂无评论...
验证码 换一张
取 消