PFIND_EXE_FILE_CALLBACK callback function

An application-defined callback function used with the FindExecutableImageEx function. It verifies whether the executable file found by FindExecutableImageEx is the correct executable file.

The PFIND_EXE_FILE_CALLBACK and PFIND_EXE_FILE_CALLBACKW types define a pointer to this callback function. FindExecutableImageProc is a placeholder for the application-defined function name.

Syntax

PFIND_EXE_FILE_CALLBACK PfindExeFileCallback;

BOOL PfindExeFileCallback(
  HANDLE FileHandle,
  PCSTR FileName,
  PVOID CallerData
)
{...}

Parameters

FileHandle

A handle to the executable file.

FileName

The name of the executable file.

CallerData

Optional user-defined data. This parameter can be NULL.

Return Value

If the executable file is valid, return TRUE. Otherwise, return FALSE.

Requirements

   
Target Platform Windows
Header dbghelp.h
Redistributable DbgHelp.dll 5.1 or later

See Also

DbgHelp Functions

FindExecutableImageEx