PathIsUNCEx function

Determines if a path string is a valid Universal Naming Convention (UNC) path, as opposed to a path based on a drive letter.

This function differs from PathIsUNC in that it also allows you to extract the name of the server from the path.

Syntax

WINPATHCCHAPI BOOL PathIsUNCEx(
  PCWSTR pszPath,
  PCWSTR *ppszServer
);

Parameters

pszPath

A pointer to the path string.

ppszServer

A pointer to a string that, when this function returns successfully, receives the server portion of the UNC path. This value can be NULL if you don't need this information.

Return Value

Returns TRUE if the string is a valid UNC path; otherwise, FALSE.

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header pathcch.h
Library Pathcch.lib