Fonction StorPortEnableRegistryKeyNotification (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 du miniport.
Valeur retournée
StorPortEnableRegistryKeyNotification retourne STOR_STATUS_SUCCESS si l’affinité de nœud a été correctement interrogée. Les valeurs de retour d’erreur possibles sont les suivantes.
Code de retour | Description |
---|---|
STOR_STATUS_INSUFFICIENT_RESOURCES | La mémoire était insuffisante 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 la clé de registre HKLM\System\CurrentControlSet\Services<serviceName>\Parameters\Device, Storport appelle la routine de rappel HW_REGISTRY_NOTIFICATION_ROUTINE du miniport avec l’extension d’appareil.
Configuration requise
Condition requise | Valeur |
---|---|
Client minimal pris en charge | Windows 11, version 22H2 |
En-tête | storport.h |
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour