3.2.4.4.3.66 IVolumeClient3::AddAccessPath (Opnum 77)

The AddAccessPath method adds the specified mount point to a volume, partition, or logical drive.

 HRESULT AddAccessPath(
   [in] int cch_path,
   [in, size_is(cch_path)] WCHAR* path,
   [in] LdmObjectId targetId
 );

cch_path: Length of path in characters, including the terminating null character.

path: Null-terminated mount point path to assign to the volume targetId.

targetId: Specifies the OID of the volume, partition, or logical drive to which the new mount point is to be assigned.

Return Values: The method MUST return 0 or a nonerror HRESULT on success, or an implementation-specific nonzero error code on failure (as specified in [MS-ERREF]; see also section 2.2.1 for HRESULT values predefined by the Disk Management Remote Protocol).

When the server receives an IVolumeClient3::AddAccessPath message, it MUST process that message, as specified in IVolumeClient::AddAccessPath (section 3.2.4.4.1.63).