Kevin
Kevin

Reputation: 3509

Laptop/Desktop Sleep Events

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?

Upvotes: 4

Views: 996

Answers (1)

Eugene Cheverda
Eugene Cheverda

Reputation: 8930

Check this CodeProject article and these MSDN reference articles.

To find out C# DLLImport declarations visit pinvoke.net

UPD

Also check here

Upvotes: 3

Related Questions