一、全局热键注册1、先引用DLL[System.Runtime.InteropServices.DllImport("user32.dll")] //导入WinAPIpublic static extern bool RegisterHotKey( //设置热键IntPtr hWnd, // 窗口句...
::GetWindowDC(m_hWnd); // 表示GetWindowDC()是一个全局函数,作用域大GetWindowDC()获得的设备环境覆盖了整个窗口(包括非客户区),例如标题栏、菜单、滚动条,以及边框GetWindowRect() rect表示应用程序窗口在屏幕中的位置rigth lef...
PreTranslateMessage 函数调用DoModal()在关闭对话框时会出现下面的bug!
原因分析:在PreTranslateMessage里的获取对应m_hWnd,DoModal()模态对话框退出后,m_hWnd不是有效的窗口句柄,需要return
rrue
解决方法:在PreTranslateMessage中处理完键盘消息后,做一下两步:
1.重新这只焦点...
IsDelphiHandleFindVCLWindowfunction IsVCLControl(Handle: HWND): Boolean;function FindControl(Handle: HWND): TWinControl;function FindVCLWindow(const P...
分类:
其他好文 时间:
2015-08-21 20:55:38
阅读次数:
121
///////消息广播只能将消息传递到接收消息的主程序中,MDIChild窗体不能接收到广播消息;/////////unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, ...
1. 点击【开始】->【运行】 命令:regedit.2. 定位到HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main3. 在【右边区域】【右键】新建一个名称为TabProcGrowth的DWORD值, 数值数...
分类:
其他好文 时间:
2015-08-19 22:36:38
阅读次数:
202
分 IE7 及 IE6 这两种情况 .
在 IE6 中这样获取地址栏中的 URL, 其中 strAdd 即为所求:
HWND hIE = NULL;
HWND hWorker = NULL;
HWND hBar = NULL;
HWND hComboBox = NULL;
TCHAR szAddr[MAX_PATH] = { 0 };
hIE = ::FindWindow(_T("IEF...
分类:
Web程序 时间:
2015-08-18 21:30:29
阅读次数:
139
原理解析:1、打开网页2、打开网页的exe自定义图标URL="http://www.gaoxinshangcheng.com/"
CallRunApp(URL)
CallOnScriptExit()
SubOnScriptExit()
Hwnd=Plugin.Window.Find(0,"桌面快捷方式Exe运行标题")
CallPlugin.Window.Close(Hwnd)
EndSub有附件可用。
分类:
Web程序 时间:
2015-08-13 20:26:03
阅读次数:
192
我发现用IDA破解TraceMe.exe比OD容易多了。
打开IDA 后,直接搜索“序列号”,得到
双击跳转到反汇编窗口,按F5转换为类C++代码
signed int __stdcall DialogFunc(HWND hWnd, int a2, unsigned __int16 a3, int a4)
{
signed int v5; // ebx@9
i...
分类:
其他好文 时间:
2015-08-10 20:11:53
阅读次数:
394
23.3.2以非阻塞方式工作的TCP聊天室客户端(1)WSAAsyncSelect函数——设置非阻塞模式参数含义SOCKET s套接字句柄HWND hWnd套接字的通知消息将被发往的hwnd的窗口过程unsigned int wMsg自定义通知消息的编号,如#define WM_SOCKET WM_...
分类:
其他好文 时间:
2015-08-09 17:02:24
阅读次数:
176