StorPortNotification for WMIEvent routine

A miniport uses the WMIEvent notification to indicate that an event is detected for which one or more WMI data consumers is registered.

Syntax


VOID StorPortNotification(
  _In_     SCSI_NOTIFICATION_TYPE NotificationType,
  _In_     PVOID                  HwDeviceExtension,
  _In_     PWNODE_EVENT_ITEM      WMIEvent,
  _In_     UCHAR                  PathId,
  _In_opt_ UCHAR                  TargetId,
  _In_opt_ UCHAR                  Lun
);

Parameters

NotificationType [in]

Specifies the WMIEvent notification type. The WMIEvent notification uses the additional parameters of WMIEvent, PathId, TargetId, and Lun.

HwDeviceExtension [in]

A pointer to the hardware device extension. This is a per HBA storage area that the port driver allocates and initializes on behalf of the miniport driver. Miniport drivers usually store HBA-specific information in this extension, such as the state of the HBA and the mapped access ranges for the HBA. This area is available to the miniport driver immediately after the miniport driver calls StorPortInitialize. The port driver frees this memory when it removes the device.

WMIEvent [in]

A pointer to event structures that have information about a WMI event that is detected by the miniport driver.

PathId [in]

Indicates the SCSI port or bus for the request. Set this parameter to 0xff for an adapter device. Otherwise, set to a valid path ID.

TargetId [in, optional]

Indicates the target controller or device on the bus. This parameter is not used when the event is for an adapter.

Lun [in, optional]

Indicates the logical unit number of the device. This parameter is not used when the event is for an adapter.

Return value

None

Remarks

For information about the effects of other notification types, see StorPortNotification.

Requirements

Target platform

Header

Storport.h (include Storport.h)

Library

Storport.lib

See also

StorPortInitialize
StorPortNotification

 

 

Send comments about this topic to Microsoft

Show: