LPDDENUMCALLBACKA callback function (ddraw.h)
The DDEnumCallback function is an application-defined callback function for the DirectDrawEnumerate function.
Syntax
LPDDENUMCALLBACKA Lpddenumcallbacka;
BOOL Lpddenumcallbacka(
GUID *unnamedParam1,
LPSTR unnamedParam2,
LPSTR unnamedParam3,
LPVOID unnamedParam4
)
{...}
Parameters
unnamedParam1
A pointer to the unique identifier of the DirectDraw object.
unnamedParam2
Address of a string that contains the driver name.
unnamedParam3
Address of a string that contains the driver description.
unnamedParam4
A pointer to an application-defined structure to be passed to the callback function each time the function is called.
Return value
The callback function returns nonzero to continue the enumeration.
It returns zero to stop the enumeration.
Remarks
You can use the LPDDENUMCALLBACK data type to declare a variable that can contain a pointer to this callback function.
If UNICODE is defined, the string values are returned as type LPWSTR, rather than LPSTR.
Note
The ddraw.h header defines LPDDENUMCALLBACK as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | ddraw.h |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for