打印本文 打印本文 关闭窗口 关闭窗口
VB.NET中实现关机/休眠/重启/注销的类
作者:武汉SEO闵涛  文章来源:敏韬网  点击数2642  更新时间:2009/4/23 19:01:49  文章录入:mintao  责任编辑:mintao
;          Return Buffer.ToString()
        End Function
    End Class

    Public Class PrivilegeException
        Inherits Exception

        Public Sub New()
            MyBase.New()
        End Sub

        Public Sub New(ByVal message As String)
            MyBase.New(message)
        End Sub
    End Class

例如实现注销功能:
        Dim shutdown As New WindowsController()
        shutdown.ExitWindows(shutdown.RestartOptions.LogOff, False)

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口