次の方法で共有


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
);

Parameters

  • 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.

Return Value

  • 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.

See Also

Reference

ScUNCFromLocalPath