DDGPE::DetectPixelFormat (Windows CE 5.0)
This method translates DDPIXELFORMAT into EGPEFormat and EDDGPEPixelFormat. The default implementation does not take dwCaps into account. If the translation is dependent on DDSCAPS specified in dwCaps, your driver must override this method.
virtual SCODE DetectPixelFormat(DWORDdwCaps,DDPIXELFORMAT* pDDPF,EGPEFormat* pFormat,EDDGPEPixelFormat* pPixelFormat);
Parameters
- dwCaps
One or more DDSCAPS_XXX. - pDDPF
DDPIXELFORMAT that must be translated. - pFormat
Pointer to EGPEFormat, which is set based on the format translation. - pPixelFormat
Pointer to EDDGPEPixelFormat, which is 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.
Requirements
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Ddgpe.h.
Link Library: Ddgpe.lib.
See Also
DDPIXELFORMAT | DDSCAPS | EDDGPEPixelFormat | DDGPE Class | DDGPE Class Definition
Send Feedback on this topic to the authors