Partager via


Fonction NtQueryInformationResourceManager (wdm.h)

La routine ZwQueryInformationResourceManager récupère des informations sur un objet resource manager spécifié.

Syntaxe

__kernel_entry NTSYSCALLAPI NTSTATUS NtQueryInformationResourceManager(
  [in]            HANDLE                            ResourceManagerHandle,
  [in]            RESOURCEMANAGER_INFORMATION_CLASS ResourceManagerInformationClass,
  [out]           PVOID                             ResourceManagerInformation,
  [in]            ULONG                             ResourceManagerInformationLength,
  [out, optional] PULONG                            ReturnLength
);

Paramètres

[in] ResourceManagerHandle

Handle vers un objet Resource Manager obtenu par un appel précédent à ZwCreateResourceManager ou ZwOpenResourceManager. Le handle doit avoir RESOURCEMANAGER_QUERY_INFORMATION accès à l’objet.

[in] ResourceManagerInformationClass

Valeur RESOURCEMANAGER_INFORMATION_CLASS-typée qui spécifie les informations à récupérer. Cette valeur doit être ResourceManagerBasicInformation.

[out] ResourceManagerInformation

Pointeur vers une structure RESOURCEMANAGER_BASIC_INFORMATION allouée par l’appelant qui reçoit des informations de ZwQueryInformationResourceManager.

[in] ResourceManagerInformationLength

Longueur, en octets, de la mémoire tampon vers laquelle pointe le paramètre ResourceManagerInformation ResourceManagerInformation.

[out, optional] ReturnLength

Pointeur vers une variable allouée par l’appelant qui reçoit la longueur, en octets, des informations que KTM écrit dans la mémoire tampon ResourceManagerInformation. Ce paramètre est facultatif et peut être NULL.

Valeur de retour

ZwQueryInformationResourceManager retourne STATUS_SUCCESS si l’opération réussit. Sinon, cette routine peut retourner l’une des valeurs suivantes :

Retourner le code Description
STATUS_OBJECT_TYPE_MISMATCH
Le handle spécifié n’est pas un handle pour un objet Resource Manager.
STATUS_INVALID_HANDLE
Un handle d’objet n’est pas valide.
STATUS_INVALID_INFO_CLASS
La valeur du paramètre resourceManagerInformationClass n’est pas valide.
STATUS_BUFFER_TOO_SMALL
La taille de la mémoire tampon spécifiée par le paramètre ResourceManagerInformationLength est inférieure à la structure RESOURCEMANAGER_BASIC_INFORMATION.
STATUS_BUFFER_OVERFLOW
La taille de la mémoire tampon spécifiée par le paramètre ResourceManagerInformationLength est trop petite pour recevoir toutes les informations de longueur variable disponibles.
STATUS_ACCESS_DENIED
L’appelant n’a pas d’accès approprié à l’objet Resource Manager.
 

La routine peut retourner d’autres valeurs NTSTATUS .

Remarques

Pour plus d’informations sur la routine ZwQueryInformationResourceManager, consultez Création d’unResource Manager.

NtQueryInformationResourceManager et ZwQueryInformationResourceManager sont deux versions de la même routine Windows Native System Services.

Pour les appels à partir de pilotes en mode noyau, les versions NtXxx et ZwXxx d’une routine Windows Native System Services peuvent se comporter différemment de la façon dont elles gèrent et interprètent les paramètres d’entrée. Pour plus d’informations sur la relation entre les versions NtXxx et ZwXxx d’une routine, consultez Using Nt and Zw Versions of the Native System Services Routines.

Exigences

Exigence Valeur
client minimum pris en charge Disponible dans Windows Vista et versions ultérieures du système d’exploitation.
plateforme cible Universel
d’en-tête wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
bibliothèque NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL
règles de conformité DDI HwStorPortProhibitedDDIs, PowerIrpDDis

Voir aussi

RESOURCEMANAGER_BASIC_INFORMATION

RESOURCEMANAGER_INFORMATION_CLASS

à l’aide de versions Nt et Zw des routines natives des services système

ZwCreateResourceManager

ZwOpenResourceManager

ZwRecoverResourceManager

ZwSetInformationResourceManager