开发者

Programmatically power off the windows machine immediately

Can I create a simple program to power off the windows machine immediately? I would like the behavior to be like pressing PWR OFF/RESET button. So the power is cut off immediately. Is there any way to send a software int开发者_开发知识库errupt to motherboard to make this happen?


You can easily do this in assembly language like MASM. Here's small tutorial from Microsoft: http://support.microsoft.com/kb/68805

Also you can try to execute int 19h assembly command.

But I'm not sure if theese methods will work under win2k and later. To get them working you should create a driver then.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜