PathIsUNCEx function (pathcch.h)
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(
[in] PCWSTR pszPath,
[out, optional] PCWSTR *ppszServer
);
Parameters
[in] pszPath
A pointer to the path string.
[out, optional] 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
Requirement | Value |
---|---|
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 |
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για