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.

•Search all software providers for the volume object on which the virtual disk file resides.•If the volume object is found, ppVolume MUST be set to the IVdsVolume interface exposed bythe volume and MUST return the value of zero; if the volume object is not found, then the serverMUST return the HRESULT error <strong>VDS</strong>_E_OBJECT_NOT_FOUND.3.4.5.2.38.4 IVdsV<strong>Disk</strong>::GetDeviceName (Opnum 6)The GetDeviceName method returns the device name of the disk.HRESULT GetDeviceName([out, string] LPWSTR* ppDeviceName);ppDeviceName: A pointer to a variable that receives the device name of the disk.Return Values: The method MUST return zero to indicate success, or return an implementationspecificnonzero error code to indicate failure.When the server receives this message, it MUST validate the following parameter:•Verify that ppDeviceName is not NULL.The server MUST perform the following:•If the virtual disk is an attached state, ppDeviceName MUST be set to the device name of thedisk associated with the virtual disk. For information on the attached state of a virtual disk, see<strong>VDS</strong>_VDISK_STATE (section 2.2.2.18.1.1).•If the virtual disk is not in an attached state, ppDeviceName MUST be set to NULL.•Return an HRESULT indicating failure or success.3.4.5.2.39 IVdsOpenV<strong>Disk</strong> Methods3.4.5.2.39.1 IVdsOpenV<strong>Disk</strong>::Attach (Opnum 3)The Attach method creates an operating system disk device for a virtual disk.HRESULT Attach([in] LPWSTR pStringSecurityDescriptor,[in] ATTACH_VIRTUAL_DISK_FLAG Flags,[in] ULONG ProviderSpecificFlags,[in] ULONG TimeoutInMs,[out] IVdsAsync** ppAsync);pStringSecurityDescriptor: A NULL-terminated wide-character string containing the securitydescriptor to be applied to the virtual disk. If this parameter is NULL, the securitydescriptor in the caller's access token MUST be used.Flags: A bitmask of ATTACH_VIRTUAL_DISK_FLAG (section 2.2.2.19.1.1) enumerationvalues specifying virtual disk attaching options.[<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, 2011270 / 360

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

Saved successfully!

Ooh no, something went wrong!