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.

corresponding disk object is not found, the server MUST return the HRESULT error<strong>VDS</strong>_E_OBJECT_NOT_FOUND. Note that the virtual disk MUST be attached.3.4.5.2.17 IVdsSubSystemImportTarget Methods3.4.5.2.17.1 IVdsSubSystemImportTarget::GetImportTarget (Opnum 3)The GetImportTarget method retrieves the name of the import target to associate with the LUNsbeing imported on the subsystem.HRESULT GetImportTarget([out, string] LPWSTR* ppwszIscsiName);ppwszIscsiName: A pointer to a string that contains the name of the import target of thesubsystem. Callers MUST free the memory that is allocated for the string when they arefinished with it.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 parameter:•Verify that ppwszIscsiName is not NULL.The server MUST point ppwszIscsiName to a string that contains the name of the import target ofthe subsystem. The server MUST then return an HRESULT to indicate failure or success.3.4.5.2.17.2 IVdsSubSystemImportTarget::SetImportTarget (Opnum 4)The SetImportTarget method sets the name of the import target to associate with the LUNs beingimported on the subsystem.HRESULT SetImportTarget([in, unique, string] LPWSTR pwszIscsiName);pwszIscsiName: A string that contains the name of the import target of the subsystem.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 parameter:•Verify that pwszIscsiName is not NULL.The server MUST set the name of the import target of the subsystem to the string that is specifiedby ppwszIscsiName. The server MUST then return an HRESULT to indicate failure or success.[<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, 2011195 / 360

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

Saved successfully!

Ooh no, something went wrong!