Process Hacker
|
Go to the source code of this file.
Functions | |
NTSTATUS | KpiOpenProcess (__out PHANDLE ProcessHandle, __in ACCESS_MASK DesiredAccess, __in PCLIENT_ID ClientId, __in KPROCESSOR_MODE AccessMode) |
Opens a process. | |
NTSTATUS | KpiOpenProcessToken (__in HANDLE ProcessHandle, __in ACCESS_MASK DesiredAccess, __out PHANDLE TokenHandle, __in KPROCESSOR_MODE AccessMode) |
Opens the token of a process. | |
NTSTATUS | KpiOpenProcessJob (__in HANDLE ProcessHandle, __in ACCESS_MASK DesiredAccess, __out PHANDLE JobHandle, __in KPROCESSOR_MODE AccessMode) |
Opens the job object of a process. | |
NTSTATUS | KpiSuspendProcess (__in HANDLE ProcessHandle, __in KPROCESSOR_MODE AccessMode) |
Suspends a process. | |
NTSTATUS | KpiResumeProcess (__in HANDLE ProcessHandle, __in KPROCESSOR_MODE AccessMode) |
Resumes a process. | |
NTSTATUS | KphTerminateProcessInternal (__in PEPROCESS Process, __in NTSTATUS ExitStatus) |
Terminates a process using PsTerminateProcess. | |
NTSTATUS | KpiTerminateProcess (__in HANDLE ProcessHandle, __in NTSTATUS ExitStatus, __in KPROCESSOR_MODE AccessMode) |
Terminates a process using PsTerminateProcess. | |
NTSTATUS | KpiQueryInformationProcess (__in HANDLE ProcessHandle, __in KPH_PROCESS_INFORMATION_CLASS ProcessInformationClass, __out_bcount(ProcessInformationLength) PVOID ProcessInformation, __in ULONG ProcessInformationLength, __out_opt PULONG ReturnLength, __in KPROCESSOR_MODE AccessMode) |
Queries process information. | |
NTSTATUS | KpiSetInformationProcess (__in HANDLE ProcessHandle, __in KPH_PROCESS_INFORMATION_CLASS ProcessInformationClass, __in_bcount(ProcessInformationLength) PVOID ProcessInformation, __in ULONG ProcessInformationLength, __in KPROCESSOR_MODE AccessMode) |
Sets process information. | |
BOOLEAN | KphAcquireProcessRundownProtection (__in PEPROCESS Process) |
Prevents a process from terminating. | |
VOID | KphReleaseProcessRundownProtection (__in PEPROCESS Process) |
Allows a process to terminate. | |
BOOLEAN KphAcquireProcessRundownProtection | ( | __in PEPROCESS | Process | ) |
VOID KphReleaseProcessRundownProtection | ( | __in PEPROCESS | Process | ) |
NTSTATUS KphTerminateProcessInternal | ( | __in PEPROCESS | Process, |
__in NTSTATUS | ExitStatus | ||
) |
NTSTATUS KpiOpenProcess | ( | __out PHANDLE | ProcessHandle, |
__in ACCESS_MASK | DesiredAccess, | ||
__in PCLIENT_ID | ClientId, | ||
__in KPROCESSOR_MODE | AccessMode | ||
) |
Opens a process.
ProcessHandle | A variable which receives the process handle. |
DesiredAccess | The desired access to the process. |
ClientId | The identifier of a process or thread. If UniqueThread is present, the process of the identified thread will be opened. If UniqueProcess is present, the identified process will be opened. |
AccessMode | The mode in which to perform access checks. |
NTSTATUS KpiOpenProcessJob | ( | __in HANDLE | ProcessHandle, |
__in ACCESS_MASK | DesiredAccess, | ||
__out PHANDLE | JobHandle, | ||
__in KPROCESSOR_MODE | AccessMode | ||
) |
NTSTATUS KpiOpenProcessToken | ( | __in HANDLE | ProcessHandle, |
__in ACCESS_MASK | DesiredAccess, | ||
__out PHANDLE | TokenHandle, | ||
__in KPROCESSOR_MODE | AccessMode | ||
) |
NTSTATUS KpiQueryInformationProcess | ( | __in HANDLE | ProcessHandle, |
__in KPH_PROCESS_INFORMATION_CLASS | ProcessInformationClass, | ||
__out_bcount(ProcessInformationLength) PVOID | ProcessInformation, | ||
__in ULONG | ProcessInformationLength, | ||
__out_opt PULONG | ReturnLength, | ||
__in KPROCESSOR_MODE | AccessMode | ||
) |
Queries process information.
ProcessHandle | A handle to a process. |
ProcessInformationClass | The type of information to query. |
ProcessInformation | The buffer in which the information will be stored. |
ProcessInformationLength | The number of bytes available in ProcessInformation. |
ReturnLength | A variable which receives the number of bytes required to be available in ProcessInformation. |
AccessMode | The mode in which to perform access checks. |
NTSTATUS KpiResumeProcess | ( | __in HANDLE | ProcessHandle, |
__in KPROCESSOR_MODE | AccessMode | ||
) |
NTSTATUS KpiSetInformationProcess | ( | __in HANDLE | ProcessHandle, |
__in KPH_PROCESS_INFORMATION_CLASS | ProcessInformationClass, | ||
__in_bcount(ProcessInformationLength) PVOID | ProcessInformation, | ||
__in ULONG | ProcessInformationLength, | ||
__in KPROCESSOR_MODE | AccessMode | ||
) |
Sets process information.
ProcessHandle | A handle to a process. |
ProcessInformationClass | The type of information to set. |
ProcessInformation | A buffer which contains the information to set. |
ProcessInformationLength | The number of bytes present in ProcessInformation. |
AccessMode | The mode in which to perform access checks. |
NTSTATUS KpiSuspendProcess | ( | __in HANDLE | ProcessHandle, |
__in KPROCESSOR_MODE | AccessMode | ||
) |
NTSTATUS KpiTerminateProcess | ( | __in HANDLE | ProcessHandle, |
__in NTSTATUS | ExitStatus, | ||
__in KPROCESSOR_MODE | AccessMode | ||
) |