News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

how to make this valid

Started by xiahan, April 18, 2012, 06:08:20 PM

Previous topic - Next topic

xiahan



assume eax:ptr CWPSTRUCT
.if [eax].message == WM_HOOKEX && [eax].lParam != 0




qWord

how is WM_HOOKEX declared?
If it is variable, it must load into a register for compare.
FPU in a trice: SmplMath
It's that simple!

xiahan



WM_HOOKEX dd 0

PrivateMsg db "WM_HOOKEX_KK",0

invoke RegisterWindowMessage,addr PrivateMsg

mov WM_HOOKEX,eax



it was declared like this

jj2007

Quote from: qWord on April 18, 2012, 06:17:28 PM
how is WM_HOOKEX declared?
If it is variable, it must load into a register for compare.

Like this:

assume eax:ptr CWPSTRUCT
mov edx, WM_HOOKEX
.if [eax].message == edx && [eax].lParam != 0
nop
.endif

xiahan