flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
redasm
bfr rb $FF
sze dd $FF struc point {.x dd ? .y dd ?} mxy point invoke GetCursorPos,mxy invoke WindowFromPoint,mxy.x,mxy.y invoke GetWindowText,eax,bfr,sze does not work ^o^ |
|||
![]() |
|
vbVeryBeginner
and the point structure is correct.
Code: typedef struct tagPOINT { LONG x; LONG y; } POINT, *PPOINT; |
|||
![]() |
|
vbVeryBeginner
try
Code: invoke WindowFromPoint,[mxy.x],[mxy.y] |
|||
![]() |
|
LocoDelAssembly
Sorry, I forgot C support passing structures by copy
![]() |
|||
![]() |
|
Reverend
locodelassembly: I also had some problems with this API once, but I noticed that API reference says "POINT" (structure) not "LPPOINT" (long pointer to structure). Heh, but for someone who doesn't use this API it could not be clear at first
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.