Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.06 KB

File metadata and controls

42 lines (29 loc) · 1.06 KB

Home

Function name : PathFileExists

Group: Shell Lightweight Utility APIs -- Path Functions - Library: shlwapi


Determines whether a path to a file system object such as a file or directory is valid.


Code examples:

Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)
Reading the structure of VFP main menu

Declaration:

BOOL PathFileExists(
    LPCTSTR pszPath
);  

FoxPro declaration:

DECLARE INTEGER PathFileExists IN shlwapi;
	STRING pszPath  

Parameters:

pszPath [in] Pointer to a null-terminated string of maximum length MAX_PATH that contains the full path of the object to verify.


Return value:

Returns TRUE if the file exists, or FALSE otherwise. Call GetLastError for extended error information.