SM_AddTarget - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 documentation

NtDoc

No description available.

Windows hardware development documentation (sm-addtarget)

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.

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

HBA_STATUS

SM_AddTarget_IN

SM_AddTarget_OUT