次の方法で共有


DrvGetMasks (Compact 2013)

3/26/2014

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 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).

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

See Also

Reference

Display Driver Functions