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.
精彩评论