News:

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

CLR_INVALID

Started by UtillMasm, December 02, 2009, 10:43:36 AM

Previous topic - Next topic

UtillMasm

C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\WinGDI.h
                  #define CLR_INVALID 0xFFFFFFFF
C:\MASM32\Include\windows.inc
                  CLR_INVALID equ 0FFFFh


is this a problem in new version?

PS. i'm still on the old version.

dedndave

FFFFFFFF must be the right value, as it is used for the transparent colour
FFFF is a valid colour - bright yellow

MichaelW

When GetBkColor and similar functions fail they return CLR_INVALID. So if I pass GetBkColor an invalid DC, it returns FFFFFFFFh.

invoke GetBkColor, -1
print uhex$(eax),"h",13,10,13,10

eschew obfuscation