#Listen to Windows un-sleep event

6 messages · Page 1 of 1 (latest)

low raptor
#

I've got an application that needs to detect when the computer leaves sleep on Windows. Is there some kind of library that can help me do this? I can't find anything for it.

hybrid sirenBOT
#

Rust for Windows

Version

0.48.0

Downloads

5 318 669

slow turret
#

@low raptor you can use windows-rs to hook into the windows c API somehow

#

IE figure out how you'd do it in C/C++ and then you can make the same windows API calls using this crate

low raptor
#

Thanks, time to delve into the horrors of win32api

slow turret