Welcome![Sign In][Sign Up]
Location:
Search - WM_CLOSE

Search list

[Windows DevelopWinKiller

Description: 窗口杀手 在使用win2000/xp的时候发现,老是出现n个输入法的窗口,不能关掉,又总在最上面,看着很不爽,就写了这个小程序来把他们关掉。 方法很简单,就是FindWindow()在PostMessage(WM_CLOSE,...),没有技术含量,仅仅图实用而已。-window Win2000/xp killer in the use of the time found that there always n input window, we can not switch off, the total at the top, watching very quickly wrote a small procedure to them to switch off. It is very simple, FindWindow () PostMessage (WM_CLOSE etc. no technical content, it only practical plan.
Platform: | Size: 12979 | Author: DoItFreely | Hits:

[Process-ThreadEnumPeb

Description: 进程的PEB在以前os上是个定数,但在xp后,有所变化,这个程序可以动态获得各个版本下不同进程的PEB,有效解决硬编码问题。获得了peb,就可以获得进程的命令行参数,获得了命令行参数就知道对应进程打开了什么文件,然后给该进程发送WM_CLOSE,就可以关闭该进程打开的文件了,是不是很神奇,但这里只介绍了动态获得PEB的方法。
Platform: | Size: 31792 | Author: 张力 | Hits:

[Windows DevelopWinKiller

Description: 窗口杀手 在使用win2000/xp的时候发现,老是出现n个输入法的窗口,不能关掉,又总在最上面,看着很不爽,就写了这个小程序来把他们关掉。 方法很简单,就是FindWindow()在PostMessage(WM_CLOSE,...),没有技术含量,仅仅图实用而已。-window Win2000/xp killer in the use of the time found that there always n input window, we can not switch off, the total at the top, watching very quickly wrote a small procedure to them to switch off. It is very simple, FindWindow () PostMessage (WM_CLOSE etc. no technical content, it only practical plan.
Platform: | Size: 12288 | Author: DoItFreely | Hits:

[Process-ThreadEnumPeb

Description: 进程的PEB在以前os上是个定数,但在xp后,有所变化,这个程序可以动态获得各个版本下不同进程的PEB,有效解决硬编码问题。获得了peb,就可以获得进程的命令行参数,获得了命令行参数就知道对应进程打开了什么文件,然后给该进程发送WM_CLOSE,就可以关闭该进程打开的文件了,是不是很神奇,但这里只介绍了动态获得PEB的方法。-err
Platform: | Size: 31744 | Author: 张力 | Hits:

[Windows Develop2

Description: 通过EnumWindows,GetWindowText,SendMessage, 三个API,向窗口标题第一个字为‘电’字的顶层窗口发送WM_CLOSE消息-By EnumWindows, GetWindowText, SendMessage, the three API, the first word to the window title for the ' power' words to send WM_CLOSE message on top of the window
Platform: | Size: 1024 | Author: 孙悟空 | Hits:

[Dialog_WindowDemo

Description: 如何关闭窗口 调用 CWnd::SendMessage函数发送WM_CLOSE消息-How to Close call CWnd:: SendMessage function sends the WM_CLOSE message
Platform: | Size: 3551232 | Author: 王刚 | Hits:

[OS programWindowKiller

Description: WindowKiller:鼠标拖动指定窗体,并向其PostMessage发送WM_CLOSE消息将其关闭。运行于VC++.net环境的源代码。-WindowKiller: mouse to drag the specified form to the PostMessage to send WM_CLOSE message to close it. Run in VC++ net environment of the source code.
Platform: | Size: 133120 | Author: 黄小伟 | Hits:

[OtherKILLAPP

Description: vb应用程序终止另一个程序源代码实例程序-Dim buf As String* 256 Dim title As String Dim length As Long Get the window s title. length = GetWindowText(app_hWnd, buf, Len(buf)) title = Left$(buf, length) See if this is the target window. If InStr(title, Target) <> 0 Then Kill the window. SendMessage app_hWnd, WM_CLOSE, 0, 0 End If Continue searching. EnumCallback = 1
Platform: | Size: 3072 | Author: wxj | Hits:

[VC/MFC222

Description: Public Function Hook_Func(ByVal iCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long Select Case iCode Case HCBT_CREATEWND Case HCBT_DESTROYWND Case HCBT_ACTIVATE Dim WinText As String Dim ClsName As String 获取窗口标题及类名 WinText = GetWindowTextString(wParam) ClsName = GetGetClassNameString(wParam) Debug.Print ClsName, GetWindowTextString(wParam) VB的弹窗类名 If ClsName = #32770 Then 发送关闭消息 PostMessage wParam, WM_CLOSE, 0, 0 End If End Select Hook_Func = CallNextHookEx(hHook, iCode, wParam, lParam) End Function-Public Function Hook_Func(ByVal iCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long Select Case iCode Case HCBT_CREATEWND Case HCBT_DESTROYWND Case HCBT_ACTIVATE Dim WinText As String Dim ClsName As String 获取窗口标题及类名 WinText = GetWindowTextString(wParam) ClsName = GetGetClassNameString(wParam) Debug.Print ClsName, GetWindowTextString(wParam) VB的弹窗类名 If ClsName = #32770 Then 发送关闭消息 PostMessage wParam, WM_CLOSE, 0, 0 End If End Select Hook_Func = CallNextHookEx(hHook, iCode, wParam, lParam) End Function
Platform: | Size: 14336 | Author: renchao | Hits:

CodeBus www.codebus.net