EnumDirTreeProc Callback Function

Debug Help Library

EnumDirTreeProc Callback Function

An application-defined callback function used with the EnumDirTree function. It is called every time a match is found.

The PENUMDIRTREE_CALLBACK type defines a pointer to this callback function. EnumDirTreeProc is a placeholder for the application-defined function name.

BOOL CALLBACK EnumDirTreeProc(
  [in]                 LPCTSTR FilePath,
  [in]                 PVOID CallerData
);

Parameters

FilePath

A pointer to a buffer that receives the full path of the file that is found.

CallerData

A user-defined value specified in EnumDirTree, or NULL. Typically, this parameter is used by an application to pass a pointer to a data structure that enables the callback function to establish some context.

Return Value

To continue enumeration, the callback function must return FALSE.

To stop enumeration, the callback function must return TRUE.

Requirements

Redistributable

Requires DbgHelp.dll 6.0 or later.

Header

Declared in DbgHelp.h.

Unicode

Implemented as PENUMDIRTREE_CALLBACKW (Unicode) and PENUMDIRTREE_CALLBACK (ANSI).

See Also

DbgHelp FunctionsEnumDirTree


Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.