【图文讲解源码】【无穷源码讲解】【solidity实例源码】网页关机源码_网页关机源码怎么设置

2025-02-07 04:42:29 来源:电话轰炸的源码 分类:娱乐

1.求vb中快速关机源码(要能在xp用)

网页关机源码_网页关机源码怎么设置

求vb中快速关机源码(要能在xp用)

       'API声明

       Public Declare Function RtlAdjustPrivilege& Lib "ntdll" (ByVal Privilege&,网页网页图文讲解源码 ByVal NewValue&, ByVal NewThread&, OldValue&)

       Public Declare Function NtShutdownSystem& Lib "ntdll" (ByVal ShutdownAction&)

        Public Const SE_SHUTDOWN_PRIVILEGE& =

        Public Const shutdown& = 0

        Public Const RESTART& = 1

        Public Const POWEROFF& = 2

       '过程

       Sub TurboShutdown()

        RtlAdjustPrivilege SE_SHUTDOWN_PRIVILEGE, 1, 0, 0

        NtShutdownSystem shutdown '关机

        'NtShutdownSystem restart '重启动

        'NtShutdownSystem poweroff '关机

       End Sub

       '调用

       call turboshutdown

本文地址:http://581.net.cn/news/74f85699069.html 欢迎转发