AddHardwareIDsToCollection method of the MSISCSITARGET_StorageHardwareIDManagementService class

Creates CIM_MemberOfCollection instances to associate specified hardware IDs to a specified collection.

Syntax

uint32 AddHardwareIDsToCollection(
  [in] string                           HardwareIDs[],
  [in] CIM_SystemSpecificCollection Ref Collection
);

Parameters

HardwareIDs [in]

Specifies string representations of the MSISCSITARGET_StorageHardwareID instances to add to the collection.

Collection [in]

Specifies the collection to which to add the specified hardware IDs.

Return value

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

DMTF Reserved (6 0x0FFF)

Invalid LogicalDevice instance (0x1000)

Implementation does not support device collections (0x1001)

Input devices cannot be used in this collection (0x1002)

Method Reserved (0x1003 0x7FFF)

Vendor Specific (0x8000 0xFFFF)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\CIMv2\Storage\iScsiTarget
MOF
SmIscsiTarget.mof
DLL
SmIScsiTargetProv.dll

See also

MSISCSITARGET_StorageHardwareIDManagementService