Skip to content

Latest commit

 

History

History
88 lines (71 loc) · 3.29 KB

nf-shlwapi-pathisnetworkpathw.md

File metadata and controls

88 lines (71 loc) · 3.29 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shlwapi.PathIsNetworkPathW
PathIsNetworkPathW function (shlwapi.h)
Determines whether a path string represents a network resource. (Unicode)
PathIsNetworkPath
PathIsNetworkPath function [Windows Shell]
PathIsNetworkPathW
_win32_PathIsNetworkPath
shell.PathIsNetworkPath
shlwapi/PathIsNetworkPath
shlwapi/PathIsNetworkPathW
shell\PathIsNetworkPath.htm
shell
3a9c33bc-2325-4285-b6c3-4c3e1d323c1e
12/05/2018
PathIsNetworkPath, PathIsNetworkPath function [Windows Shell], PathIsNetworkPathA, PathIsNetworkPathW, _win32_PathIsNetworkPath, shell.PathIsNetworkPath, shlwapi/PathIsNetworkPath, shlwapi/PathIsNetworkPathA, shlwapi/PathIsNetworkPathW
shlwapi.h
Windows
Windows 2000 Professional, Windows XP [desktop apps only]
Windows 2000 Server [desktop apps only]
PathIsNetworkPathW (Unicode) and PathIsNetworkPathA (ANSI)
Shlwapi.lib
Shlwapi.dll (version 5.0 or later)
Windows
19H1
PathIsNetworkPathW
shlwapi/PathIsNetworkPathW
c++
APIRef
kbSyntax
DllExport
Shlwapi.dll
Ext-MS-Win-shell-shlwapi-l1-1-0.dll
Ext-MS-Win-Shell-ShlwApi-l1-1-1.dll
Ext-MS-Win-Shell-ShlwAPI-L1-1-2.dll
PathIsNetworkPath
PathIsNetworkPathA
PathIsNetworkPathW

PathIsNetworkPathW function

-description

Determines whether a path string represents a network resource.

-parameters

-param pszPath [in]

Type: LPCTSTR

A pointer to a null-terminated string of maximum length MAX_PATH that contains the path.

-returns

Type: BOOL

Returns TRUE if the string represents a network resource, or FALSE otherwise.

-remarks

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.
Note  The function does not verify that the specified network resource exists, is currently accessible, or that the user has sufficient permissions to access it.
 

Note

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.