Image Image Image




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Ipoker hooking DrawTextW
PostPosted: Thu Jan 17, 2013 10:19 am 
Offline
New member
User avatar

Posts: 1
Favourite Bot: Roll
Hi,

I've been trying to read active players on a table by hooking DrawTextExW.

Prototype is:
int DrawTextEx(
_In_ HDC hdc,
_Inout_ LPTSTR lpchText,
_In_ int cchText,
_Inout_ LPRECT lprc,
_In_ UINT dwDTFormat,
_In_ LPDRAWTEXTPARAMS lpDTParams
);

It kinda works, but the output coordinates specified in lprc are local to the window.
The problem is I can't find out the hwnd this text will end up on, in case I have more than one table opened.

WindowFromDC() returns 0.

Any ideas?


Top
 Profile E-mail  
 
 Post subject: Re: Ipoker hooking DrawTextW
PostPosted: Fri Jan 18, 2013 5:55 pm 
Offline
Regular member
User avatar

Posts: 76
Favourite Bot: ...
Just hook something else then. Like BeginPaint and EndPaint or something. There's a single UI thread (most likely) which means you can associate things just by the call sequences.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: Google and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: