HW_REGISTRY_NOTIFICATION_ROUTINE callback function (storport.h)

Storport calls a miniport's HW_REGISTRY_NOTIFICATION_ROUTINE callback when a change occurs under the HKLM\System\CurrentControlSet\Services<serviceName>\Parameters\Device registry key.

Syntax

HW_REGISTRY_NOTIFICATION_ROUTINE HwRegistryNotificationRoutine;

void HwRegistryNotificationRoutine(
  PVOID HwDeviceExtension
)
{...}

Parameters

HwDeviceExtension

[in] Pointer to the hardware device extension for the host bus adapter (HBA). The miniport provided this value to Storport in a prior call to StorPortEnableRegistryKeyNotification.

Return value

None

Remarks

If a miniport has enabled registry change notification, Storport will call the miniport's HW_REGISTRY_NOTIFICATION_ROUTINE callback routine with the device extension when a change occurs under the HKLM\System\CurrentControlSet\Services<serviceName>\Parameters\Device registry key.

HW_REGISTRY_NOTIFICATION_ROUTINE should call StorPortRegistryRead for each value name, setting the Global parameter as 1.

Requirements

Requirement Value
Minimum supported client Windows 11, version 22H2
Header storport.h

See also

StorPortEnableRegistryKeyNotification

StorPortRegistryRead