Where are macro RGB and COLORREF defined?

define GET_GREEN(nColor) (nColor & 0x00FF0000) >> 16

#define GET_RED(nColor) (nColor & 0x0000FF00) >> 8

#define GET_BLUE(nColor) nColor & 0x000000FF

I want to see how the GetRValue(...) function is implemented because my own macros above aint working as expected.

My GET_BLUE macro is the only one working, the rest are returning 0.

boylesg:

define GET_GREEN(nColor) (nColor & 0x00FF0000) >> 16

#define GET_RED(nColor) (nColor & 0x0000FF00) >> 8

#define GET_BLUE(nColor) nColor & 0x000000FF




I want to see how the GetRValue(...) function is implemented because my own macros above aint working as expected. 

My GET_BLUE macro is the only one working, the rest are returning 0.

What code? What library?

boylesg:

define GET_GREEN(nColor) (nColor & 0x00FF0000) >> 16

#define GET_RED(nColor) (nColor & 0x0000FF00) >> 8

#define GET_BLUE(nColor) nColor & 0x000000FF




I want to see how the GetRValue(...) function is implemented because my own macros above aint working as expected. 

My GET_BLUE macro is the only one working, the rest are returning 0.

That would be true if "nColor" is a uint8_t.
But we can't see your code.

Can you please provide some context for this question ?