IFsrmPathMapper::GetSharePathsForLocalPath method

Retrieves a list of network shares that point to the specified local path.

Syntax


HRESULT GetSharePathsForLocalPath(
  [in]   BSTR localPath,
  [out]  SAFEARRAY(VARIANT) *sharePaths
);

Parameters

localPath [in]

The local path. The string is limited to 260 characters.

sharePaths [out]

A SAFEARRAY of VARIANTs. Each VARIANT contains a network share path that points to the local path. The variant type is VT_BSTR. Use the bstrVal member to access the share path.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

The localPath parameter cannot be empty or NULL and the sharePaths parameter cannot be NULL.

FSRM_E_INVALID_PATH

The specified path does not exist or is not valid.

 

Remarks

When you get the path property for a quota, the path is the local path. You use this method to convert that local path to the network path if you want to know the actual network share that is running out of space.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

Fsrm.h (include FsrmPipeline.h, FsrmQuota.h, FsrmReports.h, FsrmScreen.h, or FsrmTlb.h)

DLL

SrmSvc.dll

CLSID

CLSID_FsrmPathMapper is defined as f3be42bd-8ac2-409e-bbd8-faf9b6b41feb

IID

IID_IFsrmPathMapper is defined as 6f4dbfff-6920-4821-a6c3-b7e94c1fd60c

See also

IFsrmPathMapper
FsrmPathMapper

 

 

Show:
© 2014 Microsoft. All rights reserved.