Partager via


DrvGetMasks (Windows Embedded CE 6.0)

1/6/2010

This function retrieves the color masks for the display device's current mode. The ClearType and anti-aliased font libraries use this function.

Syntax

ULONG * DrvGetMasks (
  DHPDEV dhpdev
);

Parameters

  • dhpdev
    [in] Handle to the display device for which to retrieve color mask information.

Return Value

A pointer to an array of three consecutive ULONG values. Each ULONG represents the mask for a particular color component, red, green, or blue. For example, a RGB565 based display returns (0xf800, 0x07e0, 0x001f). If the display driver cannot support more than 8 bits per pixel, then each value in the array of returned ULONG values will be 0. If NULL is instead returned from DrvGetMasks, ClearType will be able to function on an 8bpp display.

Requirements

Header winddi.h
Library Ddi_ati_lib.lib, Ddi_flat_lib.lib, Ddi_gx_lib.lib, Ddi_mq200_lib.lib, Ddi_nop_lib.lib, Ddi_rflat_lib.lib, Ddi_rgx_lib.lib, Ddi_tvia5_lib.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Display Driver Functions

Other Resources

Display Drivers