13.07.2015 Views

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Force: A Boolean that determines whether an access is deleted unconditionally, even if thevolume is in use. This parameter is meaningful only when the access path is a drive letter.Return Values: The method MUST return zero or a non-error HRESULT (as specified in [<strong>MS</strong>-ERREF]) to indicate success, or return an implementation-specific nonzero error code toindicate failure. For the HRESULT values predefined by the <strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> Remote<strong>Protocol</strong>, see section 2.2.3.When the server receives this message, it MUST validate the following parameters:•Verify that pwszPath is not NULL.•Verify that the access path that pwszPath specifies is an access point to the volume.The server MUST then perform the following in sequence:•Attempt to get exclusive access to the volume. If the server fails to get exclusive access to thevolume, and the bForce parameter is not set to a non-zero value, then the server MUST return<strong>VDS</strong>_E_DEVICE_IN_USE.•Delete the access point from the volume.•If the server determines that a mount point was removed from the volume, for each callbackobject that is registered in the list of callback objects, the server MUST call the callback object'sIVdsAdviseSink::OnNotify() method by using a <strong>VDS</strong>_NOTIFICATION structure that has thefollowing attributes:•objectType member is <strong>VDS</strong>_NTT_MOUNT_POINT.•MountPoint member is a <strong>VDS</strong>_MOUNT_POINT_NOTIFICATION with the followingattributes:•ulEvent is <strong>VDS</strong>_NF_MOUNT_POINTS_CHANGE.•volumeId is the <strong>VDS</strong>_OBJECT_ID of the volume object whose mount point was removed.•If the server determines that a drive letter was removed from the volume, for each callbackobject that is registered in the list of callback objects, the server MUST call the callback object'sIVdsAdviseSink::OnNotify() method by using a <strong>VDS</strong>_NOTIFICATION structure that has thefollowing attributes:•objectType member is <strong>VDS</strong>_NTT_DRIVE_LETTER.•Letter member is a <strong>VDS</strong>_DRIVE_LETTER_NOTIFICATION that has the followingattributes:•ulEvent is <strong>VDS</strong>_NF_DRIVE_LETTER_FREE.•wcLetter is the drive letter that was removed from the volume.•volumeId is the <strong>VDS</strong>_OBJECT_ID of the volume object whose drive letter was removed.•Return an HRESULT indicating failure or success.3.4.5.2.32.7 IVdsVolumeMF::Mount (Opnum 9)The Mount method mounts a volume.[<strong>MS</strong>-<strong>VDS</strong>] — v20110610<strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> (<strong>VDS</strong>) <strong>Protocol</strong> <strong>Specification</strong>Copyright © 2011 Microsoft Corporation.Release: Friday, June 10, 2011253 / 360

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!