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.

3.4.5.2.23.7 IVdsAdvanced<strong>Disk</strong>::DeleteDriveLetter (Opnum 9)The DeleteDriveLetter method deletes a drive letter that is assigned to an OEM, ESP, or unknownpartition.HRESULT DeleteDriveLetter([in] ULONGLONG ullOffset,[in] WCHAR wcLetter);ullOffset: The byte offset of the partition from the beginning of the disk. This offset MUST be theoffset of a start of a partition.wcLetter: The drive letter to delete as a single uppercase or lowercase alphabetical (A-Z)Unicode character.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 the partition at the byte offset that is specified by ullOffset does not have a volumeexisting on it.•Verify that the partition is using the drive letter specified by wcLetter.The server MUST delete the drive letter from the partition and return an HRESULT indicating failureor success.3.4.5.2.23.8 IVdsAdvanced<strong>Disk</strong>::GetDriveLetter (Opnum 10)The GetDriveLetter method retrieves the drive letter of an OEM, ESP, or unknown partition on thedisk at a specified byte offset.HRESULT GetDriveLetter([in] ULONGLONG ullOffset,[out] WCHAR* pwcLetter);ullOffset: The byte offset of the partition, from the beginning of the disk. This offset MUST bethe offset of a start of a partition.pwcLetter: A pointer to a Unicode character that will receive an uppercase or lowercasealphabetical (A-Z) drive letter for the partition at byte offset ullOffset.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.ERROR_SUCCESS (0x00000000)[<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, 2011218 / 360

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

Saved successfully!

Ooh no, something went wrong!