Microsoft Windows CE 3.0  

DetectPixelFormat

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.

This function is used to translate DDPIXELFORMATinto EGPEFormat and EDDGPEPixelFormat. The default implementation doesn't take dwCaps into account. If the translation is dependent on DDSCAPSspecified in dwCaps, your driver needs to override this function.

virtual SCODE DetectPixelFormat ( DWORD
dwCaps
,
DDPIXELFORMAT *
pDDPF
,
EGPEFormat *
pFormat
,
EDDGPEPixelFormat *
pPixelFormat
);

Parameters

dwCaps
One or more DDSCAPS_XXX.
pDDPF
The DDPIXELFORMATthat needs to be translated.
pFormat
A pointer to EGPEFormat, which will be set based on the format translation.
pPixelFormat
A pointer to EDDGPEPixelFormat, which will be set based on the format translation.

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.