NtDllNtQueryInformationProcess Method

Retrieves information about the specified process.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("NtDll.dll", SetLastError = true)]
public static NTStatus NtQueryInformationProcess(
	IntPtr processHandle,
	ProcessInformationClass processInformationClass,
	ref ProcessBasicInformation refProcessInformation,
	int processInformationLength,
	ref int refReturnLength
)

Parameters

processHandle  IntPtr
A handle to the process for which information is to be retrieved.
processInformationClass  ProcessInformationClass
The type of process information to be retrieved.
refProcessInformation  ProcessBasicInformation
A pointer to a buffer supplied by the calling application into which the function writes the requested information.

The size of the information written varies depending on the data type of the processInformationClass parameter.

processInformationLength  Int32
The size of the buffer pointed to by the refProcessInformation parameter, in bytes.
refReturnLength  Int32
A pointer to a variable in which the function returns the size of the requested information.

If the function was successful, this is the size of the information written to the buffer pointed to by the refProcessInformation parameter, but if the buffer was too small, this is the minimum size of buffer needed to receive the information successfully.

Return Value

NTStatus
The function returns an NTStatus success or error code.

Remarks

See Also