The ZwQueryInformationResourceManager routine retrieves information about a specified resource manager object.
__kernel_entry NTSYSCALLAPI NTSTATUS NtQueryInformationResourceManager( HANDLE ResourceManagerHandle, RESOURCEMANAGER_INFORMATION_CLASS ResourceManagerInformationClass, PVOID ResourceManagerInformation, ULONG ResourceManagerInformationLength, PULONG ReturnLength );
A handle to a resource manager object that was obtained by a previous call to ZwCreateResourceManager or ZwOpenResourceManager. The handle must have RESOURCEMANAGER_QUERY_INFORMATION access to the object.
A RESOURCEMANAGER_INFORMATION_CLASS-typed value that specifies the information to retrieve. This value must be ResourceManagerBasicInformation.
A pointer to a caller-allocated RESOURCEMANAGER_BASIC_INFORMATION structure that receives information from ZwQueryInformationResourceManager.
The length, in bytes, of the buffer that the ResourceManagerInformation parameter points to.
A pointer to a caller-allocated variable that receives the length, in bytes, of the information that KTM writes to the ResourceManagerInformation buffer. This parameter is optional and can be NULL.
ZwQueryInformationResourceManager returns STATUS_SUCCESS if the operation succeeds. Otherwise, this routine might return one of the following values:
||The specified handle is not a handle to a resource manager object.|
||An object handle is invalid.|
||The ResourceManagerInformationClass parameter's value is invalid.|
||The buffer size that the ResourceManagerInformationLength parameter specifies is smaller than the RESOURCEMANAGER_BASIC_INFORMATION structure.|
||The buffer size that the ResourceManagerInformationLength parameter specifies is too small to receive all the variable-length information that is available.|
||The caller does not have appropriate access to the resource manager object.|
The routine might return other NTSTATUS values.
For more information about the ZwQueryInformationResourceManager routine, see Creating a Resource Manager.
NtQueryInformationResourceManager and ZwQueryInformationResourceManager are two versions of the same Windows Native System Services routine.
For calls from kernel-mode drivers, the NtXxx and ZwXxx versions of a Windows Native System Services routine can behave differently in the way that they handle and interpret input parameters. For more information about the relationship between the NtXxx and ZwXxx versions of a routine, see Using Nt and Zw Versions of the Native System Services Routines.
|Minimum supported client||Available in Windows Vista and later operating system versions.|
|Header||wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)|
|DDI compliance rules||PowerIrpDDis, HwStorPortProhibitedDDIs|
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.