欢迎来到皮皮网官网

【iapp极速av源码】【捕鱼红包兑换源码】【内涵段子采集源码】网页关机源码_网页关机源码怎么设置

时间:2024-12-23 09:17:27 来源:csdnssh订购系统源码

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

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

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

       'API声明

       Public Declare Function RtlAdjustPrivilege& Lib "ntdll" (ByVal Privilege&,网页网页iapp极速av源码 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

copyright © 2016 powered by 皮皮网   sitemap