Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

ScUNCFromLocalPath

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Locates a universal naming convention (UNC) path counterpart to the given local path.

Header file:

Mapidefs.h

Implemented by:

MAPI

Called by:

Client applications and service providers

SCODE ScUNCFromLocalPath(
  LPSTR szLocal,
  LPSTR szUNC,
  UINT cchUNC
);

szLocal

[in] A path in the format [drive:]\[path] of a file or directory.

szUNC

[out] A path in the format \\[server]\[share]\[path] of the same file or directory as for the szLocal parameter.

cchUNC

[in] Size of the buffer for the output string.

S_OK

The UNC path counterpart was successfully located.

MAPI_E_INVALID_PARAMETER

One or more parameters are invalid.

MAPI_E_TOO_BIG

szUNC was not large enough to hold the result.

S_FALSE

The local path was already a UNC string.

Show:
© 2015 Microsoft