StorPortEnableRegistryKeyNotification, fonction (storport.h)
Un miniport appelle StorPortEnableRegistryKeyNotification pour activer les notifications de modification de Registre pour un appareil sous le chemin HKLM\System\CurrentControlSet\Services<serviceName>\Parameters\Device.
Syntaxe
ULONG StorPortEnableRegistryKeyNotification(
PVOID HwDeviceExtension,
PHW_REGISTRY_NOTIFICATION_ROUTINE NotificationCallback
);
Paramètres
HwDeviceExtension
[in] Pointeur vers l’extension de périphérique matériel pour l’adaptateur de bus hôte (HBA).
NotificationCallback
[in] Pointeur vers la routine de rappel HW_REGISTRY_NOTIFICATION_ROUTINE miniport.
Valeur de retour
StorPortEnableRegistryKeyNotification retourne STOR_STATUS_SUCCESS si l’affinité de nœud a été interrogée avec succès. Les valeurs de retour d’erreur possibles sont les suivantes.
Retourner le code | Description |
---|---|
STOR_STATUS_INSUFFICIENT_RESOURCES | Il n’y avait pas assez de mémoire pour terminer l’opération. |
STOR_STATUS_INVALID_PARAMETER | Il existe un paramètre non valide, tel qu’un pointeur NotificationCallback null. |
STOR_STATUS_UNSUCCESSFUL | Une erreur s’est produite pour des raisons internes. |
Remarques
Lorsqu’une modification se produit sous hkLM\System\CurrentControlSet\Services<serviceName>\Parameters\Device Registry key, Storport appelle la routine de rappel HW_REGISTRY_NOTIFICATION_ROUTINE miniport avec l’extension de l’appareil.
Exigences
Exigence | Valeur |
---|---|
client minimum pris en charge | Windows 11, version 22H2 |
d’en-tête | storport.h |