Share via


ScLocalPathFromUNC

Applies to: Office 2010 | Outlook 2010 | Visual Studio

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