ScUNCFromLocalPath

Applies to: Outlook 2013 | Outlook 2016

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

Property Value
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

ScLocalPathFromUNC