如何实现XP下的切换用户
如何实现XP下的切换用户 我找到以下相关的程序(2000下有效) Option Explicit Private Declare Function SHShutDownDialog Lib "shell32" Alias _ "#60" (ByVal lType As Long) As Long Private Const EWX_LOGOFF = 0 Private Const EWX_SHUTDOWN = 1 Private Const EWX_REBOOT = 2 Private Const EWX_FORCE = 4 Private Const EWX_POWEROFF = 8 Private Sub Command1_Click() Call SHShutDownDialog(EWX_SHUTDOWN) End Sub 参数四个对应值,分别是: Public Const EWX_LOGOFF = 0 '退出(注销) Public Const EWX_SHUTDOWN = 1 '关机 Public Const EWX_REBOOT = 2 '重启动 Public Const EWX_FORCE = 4 '强制关机 我现在要做个程序要用到"切换用户",非“注销”。 |