StorPortNotification for WMIReregister routine

A miniport uses the WMIRegister notification to re-register the WMI object GUIDs for an adapter or storage device unit.

This notification is for SCSIPort compatibility only. The Storport driver performs no operation if it receives this notification.


VOID StorPortNotification(
  _In_     SCSI_NOTIFICATION_TYPE NotificationType,
  _In_     PVOID                  HwDeviceExtension,
  _In_     UCHAR                  PathId,
  _In_opt_ UCHAR                  TargetId,
  _In_opt_ UCHAR                  Lun


NotificationType [in]

Specifies the WMIRegister notification type. The WMIRegister notification uses the additional parameters of 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.

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 registration is for an adapter.

Lun [in, optional]

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

Return value



This notification indicates that the miniport driver has changed the data items or the number of instances of a given data block that was previously registered by calling IoWMIRegistrationControl.

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


Target platform



Storport.h (include Storport.h)



See also




Send comments about this topic to Microsoft