3.2.4.4.3.29 IVolumeClient3::GetVolumeMountName (Opnum 32)

The GetVolumeMountName method retrieves the mount name for a volume, partition, or logical drive.

 HRESULT GetVolumeMountName(
   [in] LdmObjectId volumeId,
   [out] unsigned long* cchMountName,
   [out, size_is(,*cchMountName)] WCHAR** mountName
 );

volumeId: Specifies the OID of the volume for which the mount name is being retrieved.

cchMountName: Pointer to the length of mountName, including the terminating null character.

mountName: Pointer to the null-terminated mount name of the volume in the format \\?\Volume{guid}(note that the question mark is literal, not a wildcard).

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::GetVolumeMountName message, it MUST process that message, as specified in IVolumeClient::GetVolumeMountName (section 3.2.4.4.1.29).