I wonder if there is a way to simulate laptop in a virtual machine. Specifically, I would like to simulate the lid closing behavior. I checked virtual box and it doesn't seem to have this kind of feature.
Thanks!
You will have to write an application to do that.
The message you are interested in broadcasting is WM_POWERBROADCAST.
Take a look here if you also need to catch it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With