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.

•For each callback object that is registered in the list of callback objects, 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_DISK.•<strong>Disk</strong> member is a <strong>VDS</strong>_DISK_NOTIFICATION that has the following attributes:•ulEvent is <strong>VDS</strong>_NF_DISK_MODIFY.•diskId is the <strong>VDS</strong>_OBJECT_ID of this disk object.•Return an HRESULT indicating failure or success.3.4.5.2.23.5 IVdsAdvanced<strong>Disk</strong>::ChangeAttributes (Opnum 7)The ChangeAttributes method changes the attributes of the partition at byte offset ullOffset on thedisk.HRESULT ChangeAttributes([in] ULONGLONG ullOffset,[in] CHANGE_ATTRIBUTES_PARAMETERS* para);ullOffset: The byte offset of the partition, from the beginning of the disk. This offset MUST bethe offset of the start of a partition.para: A pointer to a CHANGE_ATTRIBUTES_PARAMETERS structure that describes theattributes to change.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.Note This method is not valid on CD/DVD or super floppy devices. These devices do notsupport partition tables.When the server receives this message, it MUST validate the following parameters:•Verify that para is not NULL.•Verify that the partition format in input parameter para matches the current partition format ofthe disk.The server MUST perform the following:•Change the attributes of the partition following the parameters specified to the method. If thedisk partitioning format is MBR, the only value that may be changed is the bootIndicator. If thedisk partitioning format is GPT, the only value that may be changed is the GPT attributes. Thedisk partitioning format may not be changed using this method. For information on changingpartition attributes, see section 2.2.2.11.1.1.•If attributes on the partition were successfully changed, for each callback object that is registeredin the list of callback objects, call the callback object's IVdsAdviseSink::OnNotify (Opnum 3)method by using a <strong>VDS</strong>_NOTIFICATION structure that has the following attributes:[<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, 2011216 / 360

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

Saved successfully!

Ooh no, something went wrong!