Platform SDK: Debugging and Error Handling

FindExeFileProc

The FindExeFileProc function is 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 type defines a pointer to this callback function. FindExeFileProc is a placeholder for the application-defined function name.

BOOL FindExeFileProc(
  HANDLE FileHandle,
  PSTR FileName,
  PVOID CallerData
);

Parameters

FileHandle
[in] Handle to the executable file.
FileName
[in] Pointer to a null-terminated string that specifies the name of the executable file.
CallerData
[in] User-defined data. This parameter can be NULL.

Return Value

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

Requirements

  Windows NT/2000: Requires Windows 2000. Available as a redistributable for Windows NT 4.0.
  Windows 95/98: Requires Available as a redistributable for Windows 98.
  Header: Declared in Dbghelp.h.

See Also

Debug Help Library Overview, DbgHelp Functions, FindExecutableImageEx