【VB】IsHungAppWindow - 函数功能详解

admin 2021年4月3日18:53:53评论45 views字数 591阅读1分58秒阅读模式

VB 判断某窗口是否出错、挂起、无响应,IsHungAppWindow 函数功能详解,使用实例:

Private Declare Function IsHungAppWindow Lib "user32.dll" (ByVal hWnd As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

'IsHungAppWindow:参数只有一个,目标窗口的句柄.
'返回值:当句柄无效或句柄所标识的窗体的消息循环是正常的,则返回0,否则返回1,代表无响应.
Private Sub Command1_Click()
    MsgBox IsHungAppWindow(FindWindow(vbNullString, "123"))
End Sub

文章来源于lcx.cc:【VB】IsHungAppWindow - 函数功能详解

相关推荐: Betster SQL注入漏洞

Betster(又名PHP Betoffice)是一套用于创建基于PHP、MySQL和JavaScript的在线赌场软件。 Betster 1.0.4版本中存在SQL注入漏洞,该漏洞源于showprofile.php或categoryedit.php脚本没有充…

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年4月3日18:53:53
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   【VB】IsHungAppWindow - 函数功能详解http://cn-sec.com/archives/319096.html

发表评论

匿名网友 填写信息