Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function is superseded by the DirectDrawEnumerateEx function.
The DirectDrawEnumerate function enumerates the primary DirectDraw display device and a nondisplay device (such as a 3-D accelerator that has no 2-D capabilities), if one is installed. The NULL entry always identifies the primary display device shared with the GDI.
Syntax
HRESULT DirectDrawEnumerateA(
[in] LPDDENUMCALLBACKA lpCallback,
[in] LPVOID lpContext
);
Parameters
[in] lpCallback
Address of a DDEnumCallback function to be called with a description of each enumerated DirectDraw-enabled hardware abstraction layer (HAL).
[in] lpContext
Address of an application-defined context to be passed to the enumeration callback function each time that it is called.
Return value
If the function succeeds, the return value is DD_OK.
If it fails, the function returns DDERR_INVALIDPARAMS.
Remarks
You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the DirectDrawEnumerate function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Target Platform | Windows |
Header | ddraw.h |
Library | Ddraw.lib |
DLL | Ddraw.dll |