The ChangeAttributes method changes the attributes of the partition at byte offset ullOffset on the disk.

 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 be the offset of the start of a partition.

para: A pointer to a CHANGE_ATTRIBUTES_PARAMETERS structure that describes the attributes to change.

Return Values: The method MUST return zero or a non-error HRESULT (as specified in [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service Remote Protocol, see section 2.2.3.

Note This method is not valid on CD/DVD or super floppy devices. These devices do not support partition tables.

When the server receives this message, it MUST validate the following parameters:

The server MUST perform the following: