Hello,
when i to display text associated with this message in WH_CALLWNDPROC hook target application got forzen. This is my hook proc:

WndHookProc proc uses esi nCode:DWORD,wParam:DWORD,lParam:DWORD
mov edx,lParam
assume edx:PTR CWPSTRUCT
.if .message==WM_SETTEXT
mov esi, .lParam
mov esi,
mov al, byte ptr
cmp al , "O"
jne gout
invoke PostMessage, hwnd, WM_WC_HIJ, 1, 0
gout:
.endif
.endif
assume edx:nothing
invoke CallNextHookEx,hWndHookProc,nCode,wParam,lParam
ret
WndHookProc endp

I need to check just first letter of message buffer.
Any ideas?
Posted on 2002-07-15 18:32:07 by dJed_mRaz