Share via


DrvGetModes (Compact 2013)

3/26/2014

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

See Also

Reference

Display Driver Functions
DrvEnablePDEV