Shutdown, Reboot, or Log Off a System (W - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
To shutdown, reboot, or logoff a machine in VB, you use the ExitWindowEx API function. In addition, if you are running NT or 2000, you need to call the AdjustTokenProvileges function first. This function encapsulates the necessary tasks (i.e., checking the OS and calling the AdjustTokenPrivileges function if necessary).
来源: http://www.freevbcode.com/ShowCode.Asp?ID=1513
你能使用ExitWindowEx API功能在VB中来执行关机,重启,或者退出一个电脑。另外,如果你运行NT或者2000,你需要先启动AdjustTokenProvileges函数。这个函数封装重要的工作(例如, 检查OS及在必要时访问AdjustTokenPrivileges函数)。 |
类别: |
|
发布者:
cbd001
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
SRoLOaS |
 1.0  |
2003-11-21 |
下载 |
|
|