SM_AddTarget function
The SM_AddTarget WMI method configures the WMI provider to inform the WMI client about events that are associated with the indicated targets.
Syntax
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
);
Parameters
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.
Return value
Not applicable to WMI methods.
Remarks
This WMI method belongs to the MS_SM_EventControl WMI Class.
Requirements
Target platform |
Desktop |
Header |
Hbapiwmi.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for