Skip to content

Latest commit

 

History

History
88 lines (65 loc) · 2.7 KB

nc-ddraw-lpddenumcallbackw.md

File metadata and controls

88 lines (65 loc) · 2.7 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords f1_keywords dev_langs req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql topic_type api_type api_location api_name targetos req.typenames req.redist ms.custom
NC:ddraw.LPDDENUMCALLBACKW
LPDDENUMCALLBACKW (ddraw.h)
The DDEnumCallback function is an application-defined callback function for the DirectDrawEnumerate function. (Unicode)
DDEnumCallback
DDEnumCallback callback function [DirectDraw]
LPDDENUMCALLBACK
LPDDENUMCALLBACK callback
LPDDENUMCALLBACKA
LPDDENUMCALLBACKW
ddraw/DDEnumCallback
directdraw.ddenumcallback
directdraw\ddenumcallback.htm
directdraw
7F86FA67-C13B-49EE-8D17-9F54E5060A85
12/05/2018
DDEnumCallback, DDEnumCallback callback function [DirectDraw], LPDDENUMCALLBACK, LPDDENUMCALLBACK callback, LPDDENUMCALLBACKA, LPDDENUMCALLBACKW, ddraw/DDEnumCallback, directdraw.ddenumcallback
ddraw/DDEnumCallback
c++
ddraw.h
Windows
APIRef
kbSyntax
UserDefined
Ddraw.h
DDEnumCallback
lpddenumcallbackw
Windows
19H1

-description

The DDEnumCallback function is an application-defined callback function for the DirectDrawEnumerate function.

-parameters

-param unnamedParam1

A pointer to the unique identifier of the DirectDraw object.

-param unnamedParam2

Address of a string that contains the driver name.

-param unnamedParam3

Address of a string that contains the driver description.

-param unnamedParam4

A pointer to an application-defined structure to be passed to the callback function each time that the function is called.

-returns

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.