// hbapiwmi.h
void SM_AddTarget(
[in, HBAType("HBA_WWN")] uint8 HbaPortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DiscoveredPortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DomainPortWWN[8],
[in] uint32 AllTargets,
[out, HBA_STATUS_QUALIFIERS] HBA_STATUS HBAStatus
);
View the official Windows hardware development documentationNo description available.
The SM_AddTarget WMI method configures the WMI provider to inform the WMI client about events that are associated with the indicated targets.
HbaPortWWN The worldwide name (WWN) of the local port whose events the WMI client will receive.
DiscoveredPortWWN A worldwide name (WWN) that specifies the discovered target whose events the WMI client will receive.
DomainPortWWN A worldwide name (WWN) that specifies the SAS domain worldwide name of the local port whose events the WMI client will receive.
AllTargets The scope of the target events to report. If this member is zero, the WMI client receives events that are associated with the port that is indicated by DiscoveredPortWWN. If this member is nonzero, the WMI client receives all events that are associated with all currently discovered targets as well as targets that are discovered in the future.
HBAStatus The status of the operation. For a list of allowed values and their descriptions, see HBA_STATUS. The miniport driver returns this information in the HBAStatus member of a SM_AddTarget_OUT structure.
Not applicable to WMI methods.
This WMI method belongs to the MS_SM_EventControl WMI Class.
| Target platform | Desktop |
| Header | Hbapiwmi.h |