DrvGetModes (Windows Embedded CE 6.0)

1/6/2010

This function lists the modes supported by a specified device.

Syntax

ULONG DrvGetModes(
  HANDLE hDriver,
  ULONG cjSize,
  DEVMODEW* pdm 
);

Parameters

  • hDriver
    [in] Handle to the display driver. The hDriver parameter of the DrvEnablePDEV function passes this handle.
  • cjSize
    [in] Size, in bytes, of the buffer pointed to by pdm.
  • pdm
    [out] Pointer to an array of DEVMODEW structures.

Return Value

Number of bytes required for all the display modes. If the return value is zero, pdm did not contain enough memory. To find out how much memory is required, call DrvGetModes with pdm set to NULL.

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
DrvEnablePDEV

Other Resources

Display Drivers