标题:有人能指点一下这个VB调用函数关机问题吗?怎么没人看,急用!帮帮手啦.这么多 ...
取消只看楼主
dwdeng
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2006-2-20
 问题点数:0 回复次数:1 
有人能指点一下这个VB调用函数关机问题吗?怎么没人看,急用!帮帮手啦.这么多人看都人

这个ExitWindowsEx(EWX_SHUTDOWN, 0)我用了之后怎么每次都是注销而不是关机.

Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long

Private Sub Command1_Click()
Form1.Height = 0
End Sub


Private Sub Timer1_Timer()
Dim b
b = ExitWindowsEx(EWX_SHUTDOWN, 0)
End If
End Sub

[此贴子已经被作者于2006-2-20 10:49:10编辑过]

搜索更多相关主题的帖子: 函数 Sub Private Long SHUTDOWN 
2006-02-20 10:31
dwdeng
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2006-2-20
得分:0 
帮看一下这段先.
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long

Private Sub Command1_Click()
Form1.Height = 0
End Sub


Private Sub Timer1_Timer()
Dim b
b = ExitWindowsEx(EWX_SHUTDOWN, 0)
End If
End Sub

2006-02-20 11:03



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-46278-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.187318 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved