The GetDisplayDepth method retrieves the bit depth of the current display mode.
Syntax
WORD GetDisplayDepth(void);
Return Value
Returns the number of bits per pixel.
See Also