Partager via


HW_REGISTRY_NOTIFICATION_ROUTINE fonction de rappel (storport.h)

Storport appelle un rappel HW_REGISTRY_NOTIFICATION_ROUTINE miniport lorsqu’une modification se produit sous hkLM\System\CurrentControlSet\Services<serviceName>\Parameters\Device Registry key.

Syntaxe

HW_REGISTRY_NOTIFICATION_ROUTINE HwRegistryNotificationRoutine;

void HwRegistryNotificationRoutine(
  PVOID HwDeviceExtension
)
{...}

Paramètres

HwDeviceExtension

[in] Pointeur vers l’extension de périphérique matériel pour l’adaptateur de bus hôte (HBA). La miniport a fourni cette valeur à Storport dans un appel antérieur à StorPortEnableRegistryKeyNotification.

Valeur de retour

Aucun

Remarques

Si un miniport a activé la notification de modification du Registre, Storport appelle la routine de rappel HW_REGISTRY_NOTIFICATION_ROUTINE miniport avec l’extension d’appareil lorsqu’une modification se produit sous hkLM\System\CurrentControlSet\Services<serviceName>\Parameters\Device Registry key.

HW_REGISTRY_NOTIFICATION_ROUTINE devez appeler StorPortRegistryRead pour chaque nom de valeur, en définissant le paramètre global sur 1.

Exigences

Exigence Valeur
client minimum pris en charge Windows 11, version 22H2
d’en-tête storport.h

Voir aussi

StorPortEnableRegistryKeyNotification

StorPortRegistryRead