D3DENUMTEXTUREFORMATSCALLBACK is the prototype definition for the callback function to enumerate texture formats.
typedef HRESULT (WINAPI* LPD3DENUMTEXTUREFORMATSCALLBACK)
(LPDDSURFACEDESC lpDdsd,
LPVOID lpUserArg
);
Applications should return one of the following values:
D3DENUMRET_CANCEL | |
Cancel the enumeration. | |
D3DENUMRET_OK | |
Continue the enumeration. |
When determining the order in which to call callback functions, the system searches the objects highest in the hierarchy first, and then calls their callback functions in the order in which they were created.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in d3dtypes.h.
Import Library: User-defined.