AuxKlibQueryModuleInformation function

Retrieves information about the currently loaded set of modules for the system.

Syntax


NTSTATUS _stdcall AuxKlibQueryModuleInformation(
  _Inout_   PULONG BufferSize,
  _In_      ULONG  ElementSize,
  _Out_opt_ PVOID  QueryInfo
);

Parameters

BufferSize [in, out]

On input, the size of the QueryInfo buffer, in bytes. On output, receives the actual required size. Because the system module list can change between calls, this value can also change between calls.

ElementSize [in]

The size, in bytes, of an array element. This size determines the format of the output.

QueryInfo [out, optional]

A pointer to a buffer that receives the module information. This information is returned in an array whose elements are one of the following structures: AUX_MODULE_BASIC_INFO or AUX_MODULE_EXTENDED_INFO. The specific structure used depends on the specified element size.

If this parameter is NULL, the function returns the required buffer size.

Return value

If the function succeeds, the return value is STATUS_SUCCESS.

If the function fails, the return value can be one of the status codes defined in Ntstatus.h, which is available in the WDK.

Remarks

You must call the AuxKlibInitialize function before calling this function.

The object library that implements this API can be downloaded from here.

Requirements

Redistributable

Windows Auxiliary API library version 1.0 or later

Header

Aux_klib.h

Library

Aux_klib.lib

See also

AuxKlibInitialize
AUX_MODULE_BASIC_INFO
AUX_MODULE_EXTENDED_INFO

 

 

Show: