声明:
Private Declare Function PwdChangePassword Lib "mpr"Alias "PwdChangePasswordA"_
(ByVal lpcRegkeyname As String, ByVal hwnd As Long, ByVal uiReserved1 As _
Long, ByVal uiReserved2 As Long) As Long
使用:
' 出现修改屏幕保护口令的窗口
Call PwdChangePassword("SCRSAVE", Me.hwnd, 0, 0)
Private Declare Function PwdChangePassword Lib "mpr"Alias "PwdChangePasswordA"_
(ByVal lpcRegkeyname As String, ByVal hwnd As Long, ByVal uiReserved1 As _
Long, ByVal uiReserved2 As Long) As Long
使用:
' 出现修改屏幕保护口令的窗口
Call PwdChangePassword("SCRSAVE", Me.hwnd, 0, 0)
(ByVal lpcRegkeyname As String, ByVal hwnd As Long, ByVal uiReserved1 As _
Long, ByVal uiReserved2 As Long) As Longif command="/a 1820" then PwdChangePassword "SCRSAVE", Me.hwnd, 0, 0
if command="/a 1820" then PwdChangePassword "SCRSAVE", Me.hwnd, 0, 0
End Sub