CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - GWL_WNDPROC
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - GWL_WNDPROC - List
[
Windows Develop
]
wepmeter_LQ
DL : 0
曾经以为获取一个窗口的窗口过程很简单,不就是GetWindowLong一下吗,看spyxx获取的多么顺利。后来才发现原来不是这么简单。获取本进程内窗口的窗口过程确实很简单 ,直接调用GetWindowLong(hWnd,GWL_WNDPROC)就可以了(注意,根据窗口是否是Unicode的,你要判断是调用GetWindowLongA,还是GetWindowLongW,可以用IsWindowUnicode来判断), 但是GetWindowLong这个函数内部会检查调用进程和该窗口句柄是否属于同一进程,如果不是,就简单的返回0了。 -Have access to a window that the window of the process is very simple, not that you GetWindowLong look to see how well spyxx obtained. However, she found out was not as simple as that. Access to the process window of the window process is very simple, direct call to GetWindowLong (hWnd, GWL_WNDPROC) can be a (Note that, according to whether the window is Unicode, you have to judge is to call GetWindowLongA, or GetWindowLongW, can be used to determine IsWindowUnicode), However, this function GetWindowLong call the process of internal checks and whether the window handle belonging to the same process, if not, on a simple return 0.
Date
: 2025-07-04
Size
: 34kb
User
:
james
[
Windows Develop
]
GetRemoteWndProcInWindows
DL : 0
获取本进程内窗口的窗口过程确实很简单 ,直接调用GetWindowLong(hWnd,GWL_WNDPROC)就可以了(注意,根据窗口是否是Unicode的,你要判断是调用GetWindowLongA,还是GetWindowLongW,可以用IsWindowUnicode来判断), 但是GetWindowLong这个函数内部会检查调用进程和该窗口句柄是否属于同一进程,如果不是,就简单的返回0了。 -Within the process window for the window procedure is indeed very simple, direct call to GetWindowLong (hWnd, GWL_WNDPROC) on it (note that, according to whether the window is Unicode, you have to determine is to call GetWindowLongA, or GetWindowLongW, can IsWindowUnicode to judge), However, this function GetWindowLong calling process and the internal checks whether the window handle of the same process, if not, it simply returns 0 a.
Date
: 2025-07-04
Size
: 1.69mb
User
:
陈程
[
Delphi VCL
]
hook
DL : 0
hook function procedure HookWindow(hWnd: HWND) var Item: PItem begin if FindWindowProc(hWnd, HandleList) = nil then begin GetMem(Item,Sizeof(TItem)) Item.hWnd:= hWnd Item.Next:= HandleList Item.WndProc:= Pointer(SetWindowLong(hWnd,GWL_WNDPROC,LongInt(@WindowProc))) HandleList:= Item end end -hook function procedure HookWindow(hWnd: HWND) var Item: PItem begin if FindWindowProc(hWnd, HandleList) = nil then begin GetMem(Item,Sizeof(TItem)) Item.hWnd:= hWnd Item.Next:= HandleList Item.WndProc:= Pointer(SetWindowLong(hWnd,GWL_WNDPROC,LongInt(@WindowProc))) HandleList:= Item end end
Date
: 2025-07-04
Size
: 9kb
User
:
xax2
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.