NtDllNtQueryInformationProcess Method
Retrieves information about the specified process.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("NtDll.dll", SetLastError := true>]
Public Shared Function NtQueryInformationProcess (
processHandle As IntPtr,
processInformationClass As ProcessInformationClass,
ByRef refProcessInformation As ProcessBasicInformation,
processInformationLength As Integer,
ByRef refReturnLength As Integer
) As NTStatus
Dim processHandle As IntPtr
Dim processInformationClass As ProcessInformationClass
Dim refProcessInformation As ProcessBasicInformation
Dim processInformationLength As Integer
Dim refReturnLength As Integer
Dim returnValue As NTStatus
returnValue = NtDll.NtQueryInformationProcess(processHandle,
processInformationClass, refProcessInformation,
processInformationLength, refReturnLength)
public:
[DllImportAttribute(L"NtDll.dll", SetLastError = true)]
static NTStatus NtQueryInformationProcess(
IntPtr processHandle,
ProcessInformationClass processInformationClass,
ProcessBasicInformation% refProcessInformation,
int processInformationLength,
int% refReturnLength
)
[<DllImportAttribute("NtDll.dll", SetLastError = true)>]
static member NtQueryInformationProcess :
processHandle : IntPtr *
processInformationClass : ProcessInformationClass *
refProcessInformation : ProcessBasicInformation byref *
processInformationLength : int *
refReturnLength : int byref -> NTStatus
No code example is currently available or this language may not be supported.
- 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.
NTStatus
The function returns an
NTStatus success or error code.