How to capture Windows SessionSwitch event in Rust

I am an experienced programmer but a complete newbie to Rust and Windows programming. I am thinking of building a small app which will be required to determine whether the screen is locked. I referred
Looks like the only way to do this on windows is by capturing SessionSwitch event. Now rust has a dedicated windows crate for using Windows API. But I couldn't find any reference to
SessionSwitch there. What am I missing? I am wondering whether what I need is possible with Rust at all or not.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.