NAME

PathFileExistsDefExtA  (SHLWAPI.3)

SYNOPSIS

 BOOL PathFileExistsDefExtA
 (
  LPSTR lpszPath,
  DWORD dwWhich
 )

DESCRIPTION

Determine if a file exists locally and is of an executable type.

PARAMS

lpszPath [In/Out] File to search for.
dwWhich [In] Type of executable to search for.

RETURNS

TRUE If the file was found. lpszPath contains the file name. FALSE Otherwise.

NOTES

lpszPath is modified in place and must be at least MAX_PATH in length. If the function returns FALSE, the path is modified to its original state. If the given path contains an extension or dwWhich is 0, executable extensions are not checked.

Ordinals 3-6 are a classic case of Microsoft® exposing limited functionality to users (here through PathFindOnPathA) and keeping advanced functionality for their own developers exclusive use. Monopoly, anyone?

IMPLEMENTATION

Exported by ordinal only. Use GetProcAddress to obtain a pointer to the function.

Implemented in "dlls/shlwapi/path.c". https://source.winehq.org/source/dlls/shlwapi/path.c

Debug channel "shell".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.