联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 Shutdown, Reboot, or Log Off a System (W - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为18993
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • jasperreports
  • Air Traffic Controller
  • PoolMan
  • Apache-SSL-Jserv
  • virtualdub-win
  • CppUnit
  • GLgraph
  • FCK editor
  • Async Professional
  • -= 更多 =-

    项目描述:
    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 下载

    原始下载连接(国外) http://www.freevbcode.com/code/reboot.zip

      » 合 作 伙 伴