ScLocalPathFromUNC
TOC
Collapse the table of content
Expand the table of content
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. ArchiveDisclaimer

ScLocalPathFromUNC

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 local path counterpart to the given universal naming convention (UNC) path.

Header file:

Mapiutil.h

Implemented by:

MAPI

Called by:

Client applications and service providers

SCODE ScLocalPathFromUNC(
  LPSTR szUNC,
  LPSTR szLocal,
  UINT cchLocal
);

szUNC

[in] A path in the format \\[server]\[share]\[path] of a file or directory.

szLocal

[out] A path in the format [drive:]\[path] of the same file or directory as for the szUNC parameter.

cchLocal

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

S_OK

A local path was successfully located.

MAPI_E_TOO_BIG

szLocal was not large enough to hold the result.

S_FALSE

The UNC string was already a local path.

MAPI_E_NOT_FOUND

A local path was not found.

Show:
© 2016 Microsoft