怎么用API查找函数? 20
1个回答
2015-11-28
展开全部
通过名称来猜,英文好一点会很有帮助。否则,只有下载一个中文 VB API 文档学习。
用VB关机、注销、重新启动
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Const EWX_LOGOFF = 0
Const EWX_SHUTDOWN = 1
Const EWX_REBOOT = 2
Private Sub Command1_Click()
ExitWindowsEx EWX_SHUTDOWN, 0 '关闭系统
' ExitWindowsEx EWX_LOGOFF, 0 '注销
' ExitWindowsEx EWX_REBOOT, 0 '重新启动
用VB关机、注销、重新启动
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Const EWX_LOGOFF = 0
Const EWX_SHUTDOWN = 1
Const EWX_REBOOT = 2
Private Sub Command1_Click()
ExitWindowsEx EWX_SHUTDOWN, 0 '关闭系统
' ExitWindowsEx EWX_LOGOFF, 0 '注销
' ExitWindowsEx EWX_REBOOT, 0 '重新启动
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询