ScUNCFromLocalPath

Applies to: Office 2010 | Outlook 2010 | Visual Studio

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

Parameters

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

Return Value

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

See Also

Reference

ScLocalPathFromUNC