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.

object's IVdsAdviseSink::OnNotify() method by using a <strong>VDS</strong>_NOTIFICATION structure thathas the following attributes:•objectType member is <strong>VDS</strong>_NTT_MOUNT_POINT.•MountPoint member is a <strong>VDS</strong>_MOUNT_POINT_NOTIFICATION with the followingattributes:•ulEvent is <strong>VDS</strong>_NF_MOUNT_POINTS_CHANGE.•volumeId is the <strong>VDS</strong>_OBJECT_ID of the volume object whose mount point wasassigned.•If the server determines that a drive letter was added to the volume, for each callback objectthat is registered in the list of callback objects, the server MUST 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_DRIVE_LETTER.•Letter member is a <strong>VDS</strong>_DRIVE_LETTER_NOTIFICATION that has the followingattributes:•ulEvent is <strong>VDS</strong>_NF_DRIVE_LETTER_ASSIGN.•wcLetter is the drive letter that was assigned to the volume.•volumeId is the <strong>VDS</strong>_OBJECT_ID of the volume object whose drive letter was assigned.•Return an HRESULT indicating failure or success.3.4.5.2.32.4 IVdsVolumeMF::QueryAccessPaths (Opnum 6)The QueryAccessPaths method returns a list of access paths and a drive letter as a single caseinsensitiveUnicode character, if one exists, for the current volume.HRESULT QueryAccessPaths([out, string, size_is(,*plNumberOfAccessPaths)]LPWSTR** pwszPathArray,[out] long* plNumberOfAccessPaths);pwszPathArray: A pointer to an array of strings that, if the operation is successfully completed,receives the array of access paths.plNumberOfAccessPaths: A pointer to a variable that, if the operation is successfullycompleted, receives the total number of elements returned in pwszPathArray.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 pwszPathArray is not NULL.[<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, 2011251 / 360

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

Saved successfully!

Ooh no, something went wrong!