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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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 has a drive letter.•Verify that the partition is an OEM, ESP, or unknown partition.•Verify that pwcLetter is not NULL.The server MUST set a value referenced by pwcLetter with the drive letter of the partition and returnan HRESULT indicating failure or success.3.4.5.2.23.9 IVdsAdvanced<strong>Disk</strong>::FormatPartition (Opnum 11)The FormatPartition method formats an existing OEM, ESP, or unknown partition.HRESULT FormatPartition([in] ULONGLONG ullOffset,[in] <strong>VDS</strong>_FILE_SYSTEM_TYPE type,[in, string] WCHAR* pwszLabel,[in] DWORD dwUnitAllocationSize,[in] long bForce,[in] long bQuickFormat,[in] long bEnableCompression,[out] IVdsAsync** ppAsync);ullOffset: The byte offset of the partition, from the beginning of the disk. This offset MUST bethe offset of a start of a partition.type: A file system type that is enumerated by <strong>VDS</strong>_FILE_SYSTEM_TYPE. Clients that want toformat by using file systems that are not enumerated by <strong>VDS</strong>_FILE_SYSTEM_TYPE (section2.2.1.2.9) may use the IVds<strong>Disk</strong>PartitionMF::FormatPartionEx (section 3.4.5.2.27.4) orIVds<strong>Disk</strong>PartitionMF2::FormatPartitionEx2 methods.pwszLabel: A null-terminated Unicode string representing the partition label. The maximumlabel size is file system-dependent.dwUnitAllocationSize: The size, in bytes, of the allocation unit for the file system. The valueMUST be a power of 2. Allocation unit range is file system-dependent.bForce: A Boolean that determines whether the format is forced, regardless of whether thepartition is in use.bQuickFormat: A Boolean that determines whether a file system is quick formatted. A quickformat does not verify each sector on the volume.bEnableCompression: A Boolean that determines whether a file system is created withcompression enabled.ppAsync: A pointer to an IVdsAsync interface that, if the operation is successfully completed,receives the IVdsAsync interface to monitor and control this operation. Callers MUST releasethe interface when they are done with it.[<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, 2011219 / 360

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

Saved successfully!

Ooh no, something went wrong!