PathIsNetworkPathA function (shlwapi.h)
Determines whether a path string represents a network resource.
BOOL PathIsNetworkPathA( LPCSTR pszPath );
A pointer to a null-terminated string of maximum length MAX_PATH that contains the path.
Returns TRUE if the string represents a network resource, or FALSE otherwise.
PathIsNetworkPath interprets the following two types of paths as network paths.
- Paths that begin with two backslash characters (\\) are interpreted as Universal Naming Convention (UNC) paths.
- Paths that begin with a letter followed by a colon (:) are interpreted as a mounted network drive. However, PathIsNetworkPath cannot recognize a network drive mapped to a drive letter through the Microsoft MS-DOS SUBST command or the DefineDosDevice function.
The shlwapi.h header defines PathIsNetworkPath as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
|Minimum supported client||Windows 2000 Professional, Windows XP [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|DLL||Shlwapi.dll (version 5.0 or later)|