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.

•Set the signal state in the async object to TRUE.3.4.5.2.29 IVdsRemovable Methods3.4.5.2.29.1 IVdsRemovable::QueryMedia (Opnum 3)The QueryMedia method identifies the media in the drive.HRESULT QueryMedia();This method has no parameters.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)When the server receives this message, it MUST perform the following:•Refresh any cached disk and volume properties of the removable media drive.•If the disk properties (<strong>VDS</strong>_DISK_PROP values) for the media have changed, for each callbackobject registered in the list of callback objects, call the callback object'sIVdsAdviseSink::OnNotify method with a <strong>VDS</strong>_NOTIFICATION structure with the followingattributes:•objectType member is <strong>VDS</strong>_NTT_DISK.•<strong>Disk</strong> member is a <strong>VDS</strong>_DISK_NOTIFICATION with the following attributes:•ulEvent is <strong>VDS</strong>_NF_DISK_MODIFY.•diskId is the <strong>VDS</strong>_OBJECT_ID of this disk object.•If the volume properties (<strong>VDS</strong>_VOLUME_PROP values) for the media have changed, for eachcallback object registered in the list of callback objects, call the callback object'sIVdsAdviseSink::OnNotify method with a <strong>VDS</strong>_NOTIFICATION structure with the followingattributes:•objectType member is <strong>VDS</strong>_NTT_VOLUME.•Volume member is a <strong>VDS</strong>_VOLUME_NOTIFICATION with the following attributes:•ulEvent is <strong>VDS</strong>_NF_VOLUME_MODIFY.•volumeId is the <strong>VDS</strong>_OBJECT_ID of the volume object corresponding to the removablemedia drive.•Return an HRESULT indicating failure or success.3.4.5.2.29.2 IVdsRemovable::Eject (Opnum 4)The Eject method ejects the media in the drive.[<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, 2011234 / 360

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

Saved successfully!

Ooh no, something went wrong!