3.4.5.2.18.1 IVdsSubSystemImportTarget::GetImportTarget (Opnum 3)
The GetImportTarget method retrieves the name of the import target to associate with the LUNs being 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 the subsystem. Callers MUST free the memory that is allocated for the string when they are finished with it.
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.
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 of the subsystem. The server MUST then return an HRESULT to indicate failure or success.