Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用C中的Win32 API关闭电脑?_C_Winapi - Fatal编程技术网

如何使用C中的Win32 API关闭电脑?

如何使用C中的Win32 API关闭电脑?,c,winapi,C,Winapi,我需要一种使用Win32 API强制关闭我的机器的方法 我目前正在使用Windows 7,但我很想知道该代码是否适用于Vista和XP。还不能满足您的需要吗?这里甚至有一个如何使用它的示例:

我需要一种使用Win32 API强制关闭我的机器的方法


我目前正在使用Windows 7,但我很想知道该代码是否适用于Vista和XP。

还不能满足您的需要吗?

这里甚至有一个如何使用它的示例: