Simulating windows laptop in virtual machine?

↘锁芯ラ 提交于 2019-12-04 23:11:49

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/4486560/simulating-windows-laptop-in-virtual-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!