Reputation: 85
I am Hooking the GDI API ExtTextOut
BOOL ExtTextOut(
__in HDC hdc,
__in int X,
__in int Y,
__in UINT fuOptions,
__in const RECT *lprc,
__in LPCTSTR lpString,
__in UINT cbCount,
__in const INT *lpDx
);
My question: Is there a good solid way to distinguish the device context type (HDC). In particular to know if it is a memory device context or a display device context.
Thanks for your efforts, Momico.
Upvotes: 2
Views: 216
Reputation: 36
off course there is, you should put in your custom function return GetObjectType( dc ) == OBJ_MEMDC ;
best
Upvotes: 2