HW_REGISTRY_NOTIFICATION_ROUTINE回调函数 (storport.h)
Storport 在 HKLM\System\CurrentControlSet\Services<serviceName>\Parameters\Device 注册表项下发生更改时,Storport 将调用微型端口的 HW_REGISTRY_NOTIFICATION_ROUTINE 回调。
语法
HW_REGISTRY_NOTIFICATION_ROUTINE HwRegistryNotificationRoutine;
void HwRegistryNotificationRoutine(
PVOID HwDeviceExtension
)
{...}
参数
HwDeviceExtension
[in]指向主机总线适配器(HBA)的硬件设备扩展的指针。 微型端口在之前调用 StorPortEnableRegistryKeyNotification中向 Storport 提供了此值。
返回值
没有
言论
如果微型端口 启用了注册表更改通知,则 Storport 将在 HKLM\System\CurrentControlSet\Services<serviceName>\Parameters\Device 注册表项下发生更改时,使用设备扩展调用微型端口的 HW_REGISTRY_NOTIFICATION_ROUTINE 回调例程。
HW_REGISTRY_NOTIFICATION_ROUTINE 应为每个值名称调用 StorPortRegistryRead,并将 Global 参数设置为 1。
要求
要求 | 价值 |
---|---|
最低支持的客户端 | Windows 11 版本 22H2 |
标头 | storport.h |