IOCTL_HAL_QUERY_DISPLAYSETTINGS

This IOCTL is used by graphics device interface (GDI) to query the kernel for information about a preferred resolution for the system to use. The OEMIoControl function calls this IOCTL.

Parameters

  • dwIoControlCode
    [in] Set to IOCTL_HAL_QUERY_DISPLAYSETTINGS.
  • lpInBuf
    Not used.
  • nInBufsize
    Not used.
  • lpOutBuf
    [out] Array of three DWORDs. If the call succeeds, the first DWORD contains the preferred width, the second contains the preferred height, and the third contains the color depth in bits per pixel.
  • nOutBufSize
    [in] Size of the three DWORDs.
  • lpBytesReturned
    [in] Actual number of bytes returned by lpOutBuf.

Return Values

TRUE indicates success. FALSE indicates failure.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Pkfuncs.h.

See Also

OEMIoControl

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.