3.4.5.2.18.2 IVdsSubSystemImportTarget::SetImportTarget (Opnum 4)

The SetImportTarget method sets the name of the import target to associate with the LUNs being imported 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 [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 pwszIscsiName is not NULL.

The server MUST set the name of the import target of the subsystem to the string that is specified by ppwszIscsiName. The server MUST then return an HRESULT to indicate failure or success.