ZwQueryInformationResourceManager routine

The ZwQueryInformationResourceManager routine retrieves information about a specified resource manager object.

Syntax


NTSTATUS ZwQueryInformationResourceManager(
  _In_       HANDLE ResourceManagerHandle,
  _In_       RESOURCEMANAGER_INFORMATION_CLASS ResourceManagerInformationClass,
  _Out_      PVOID ResourceManagerInformation,
  _In_       ULONG ResourceManagerInformationLength,
  _Out_opt_  PULONG ReturnLength
);

Parameters

ResourceManagerHandle [in]

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.

ResourceManagerInformationClass [in]

A RESOURCEMANAGER_INFORMATION_CLASS-typed value that specifies the information to retrieve. This value must be ResourceManagerBasicInformation.

ResourceManagerInformation [out]

A pointer to a caller-allocated RESOURCEMANAGER_BASIC_INFORMATION structure that receives information from ZwQueryInformationResourceManager.

ResourceManagerInformationLength [in]

The length, in bytes, of the buffer that the ResourceManagerInformation parameter points to.

ReturnLength [out, optional]

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.

Return value

ZwQueryInformationResourceManager returns STATUS_SUCCESS if the operation succeeds. Otherwise, this routine might return one of the following values:

Return codeDescription
STATUS_OBJECT_TYPE_MISMATCH

The specified handle is not a handle to a resource manager object.

STATUS_INVALID_HANDLE

An object handle is invalid.

STATUS_INVALID_INFO_CLASS

The ResourceManagerInformationClass parameter's value is invalid.

STATUS_BUFFER_TOO_SMALL

The buffer size that the ResourceManagerInformationLength parameter specifies is smaller than the RESOURCEMANAGER_BASIC_INFORMATION structure.

STATUS_BUFFER_OVERFLOW

The buffer size that the ResourceManagerInformationLength parameter specifies is too small to receive all the variable-length information that is available.

STATUS_ACCESS_DENIED

The caller does not have appropriate access to the resource manager object.

 

The routine might return other NTSTATUS values.

Remarks

For more information about the ZwQueryInformationResourceManager routine, see Creating a Resource Manager.

Requirements

Version

Available in Windows Vista and later operating system versions.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL

DDI compliance rules

PowerIrpDDis, HwStorPortProhibitedDDIs

See also

RESOURCEMANAGER_BASIC_INFORMATION
RESOURCEMANAGER_INFORMATION_CLASS
ZwCreateResourceManager
ZwOpenResourceManager
ZwRecoverResourceManager
ZwSetInformationResourceManager

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft