Microsoft Windows CE 3.0  

DetectMode

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The DetectModefunction is used to determine the display mode that corresponds exactly to a set of parameters. The list of supported modes is parsed using GetModeand GetModeEx(if it is supported) in order to find a match.

virtual SCODE DetectMode ( DWORD *
dwModeID
,
DWORD
dwWidth
,
DWORD
dwHeight
,
EGPEFormat
format
,
EDDGPEPixelFormat
pixelFormat
,
DDPIXELFORMAT *
pDDPF
= NULL );

Parameters

dwModeID
Will contain the mode that is detected, based on the selected parameters.
dwWidth
The display mode's width.
dwHeight
The display mode's height
format
The display mode's format.
pixelFormat
The display mode's pixel format.
pDDPF
The DirectDraw pixel format structure that should be used in addition to the other parameters for precisely matching a mode. If this parameter is NULL, it is ignored, and the function relies on the other parameters to find a match.

Return Values

The return value is S_OK if the function is successful. Otherwise an error code is returned.



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.