Process Hacker
|
#include <phapp.h>
#include <settings.h>
#include <kphuser.h>
#include <phsvccl.h>
#include <winsta.h>
#include <iphlpapi.h>
Go to the source code of this file.
Typedefs | |
typedef DWORD(WINAPI * | _SetTcpEntry )(_In_ PMIB_TCPROW pTcpRow) |
Functions | |
HRESULT CALLBACK | PhpElevateActionCallbackProc (_In_ HWND hwnd, _In_ UINT uNotification, _In_ WPARAM wParam, _In_ LPARAM lParam, _In_ LONG_PTR dwRefData) |
BOOLEAN | PhpShowElevatePrompt (_In_ HWND hWnd, _In_ PWSTR Message, _In_ NTSTATUS Status, _Out_ PINT Button) |
BOOLEAN | PhpShowErrorAndElevateAction (_In_ HWND hWnd, _In_ PWSTR Message, _In_ NTSTATUS Status, _In_ PWSTR Command, _Out_ PBOOLEAN Success) |
Shows an error, prompts for elevation, and executes a command. | |
BOOLEAN | PhpShowErrorAndConnectToPhSvc (_In_ HWND hWnd, _In_ PWSTR Message, _In_ NTSTATUS Status, _Out_ PBOOLEAN Connected) |
Shows an error, prompts for elevation, and connects to phsvc. | |
BOOLEAN | PhUiConnectToPhSvc (_In_opt_ HWND hWnd, _In_ BOOLEAN ConnectOnly) |
Connects to phsvc. | |
VOID | PhpGetPhSvcPortName (_In_ PH_PHSVC_MODE Mode, _Out_ PUNICODE_STRING PortName) |
BOOLEAN | PhpStartPhSvcProcess (_In_opt_ HWND hWnd, _In_ PH_PHSVC_MODE Mode) |
BOOLEAN | PhUiConnectToPhSvcEx (_In_opt_ HWND hWnd, _In_ PH_PHSVC_MODE Mode, _In_ BOOLEAN ConnectOnly) |
Connects to phsvc. | |
VOID | PhUiDisconnectFromPhSvc (VOID) |
Disconnects from phsvc. | |
BOOLEAN | PhUiLockComputer (_In_ HWND hWnd) |
BOOLEAN | PhUiLogoffComputer (_In_ HWND hWnd) |
BOOLEAN | PhUiSleepComputer (_In_ HWND hWnd) |
BOOLEAN | PhUiHibernateComputer (_In_ HWND hWnd) |
BOOLEAN | PhUiRestartComputer (_In_ HWND hWnd, _In_ ULONG Flags) |
BOOLEAN | PhUiShutdownComputer (_In_ HWND hWnd, _In_ ULONG Flags) |
BOOLEAN | PhUiConnectSession (_In_ HWND hWnd, _In_ ULONG SessionId) |
BOOLEAN | PhUiDisconnectSession (_In_ HWND hWnd, _In_ ULONG SessionId) |
BOOLEAN | PhUiLogoffSession (_In_ HWND hWnd, _In_ ULONG SessionId) |
BOOLEAN | PhUiTerminateProcesses (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM *Processes, _In_ ULONG NumberOfProcesses) |
BOOLEAN | PhpUiTerminateTreeProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process, _In_ PVOID Processes, _Inout_ PBOOLEAN Success) |
BOOLEAN | PhUiTerminateTreeProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process) |
BOOLEAN | PhUiSuspendProcesses (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM *Processes, _In_ ULONG NumberOfProcesses) |
BOOLEAN | PhUiResumeProcesses (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM *Processes, _In_ ULONG NumberOfProcesses) |
BOOLEAN | PhUiRestartProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process) |
BOOLEAN | PhUiDebugProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process) |
BOOLEAN | PhUiReduceWorkingSetProcesses (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM *Processes, _In_ ULONG NumberOfProcesses) |
BOOLEAN | PhUiSetVirtualizationProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process, _In_ BOOLEAN Enable) |
BOOLEAN | PhUiDetachFromDebuggerProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process) |
BOOLEAN | PhUiInjectDllProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process) |
BOOLEAN | PhUiSetIoPriorityProcesses (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM *Processes, _In_ ULONG NumberOfProcesses, _In_ ULONG IoPriority) |
BOOLEAN | PhUiSetPagePriorityProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process, _In_ ULONG PagePriority) |
BOOLEAN | PhUiSetPriorityProcesses (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM *Processes, _In_ ULONG NumberOfProcesses, _In_ ULONG PriorityClass) |
BOOLEAN | PhUiSetDepStatusProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process) |
BOOLEAN | PhUiSetProtectionProcess (_In_ HWND hWnd, _In_ PPH_PROCESS_ITEM Process) |
BOOLEAN | PhUiStartService (_In_ HWND hWnd, _In_ PPH_SERVICE_ITEM Service) |
BOOLEAN | PhUiContinueService (_In_ HWND hWnd, _In_ PPH_SERVICE_ITEM Service) |
BOOLEAN | PhUiPauseService (_In_ HWND hWnd, _In_ PPH_SERVICE_ITEM Service) |
BOOLEAN | PhUiStopService (_In_ HWND hWnd, _In_ PPH_SERVICE_ITEM Service) |
BOOLEAN | PhUiDeleteService (_In_ HWND hWnd, _In_ PPH_SERVICE_ITEM Service) |
BOOLEAN | PhUiCloseConnections (_In_ HWND hWnd, _In_ PPH_NETWORK_ITEM *Connections, _In_ ULONG NumberOfConnections) |
BOOLEAN | PhUiTerminateThreads (_In_ HWND hWnd, _In_ PPH_THREAD_ITEM *Threads, _In_ ULONG NumberOfThreads) |
BOOLEAN | PhUiForceTerminateThreads (_In_ HWND hWnd, _In_ HANDLE ProcessId, _In_ PPH_THREAD_ITEM *Threads, _In_ ULONG NumberOfThreads) |
BOOLEAN | PhUiSuspendThreads (_In_ HWND hWnd, _In_ PPH_THREAD_ITEM *Threads, _In_ ULONG NumberOfThreads) |
BOOLEAN | PhUiResumeThreads (_In_ HWND hWnd, _In_ PPH_THREAD_ITEM *Threads, _In_ ULONG NumberOfThreads) |
BOOLEAN | PhUiSetPriorityThread (_In_ HWND hWnd, _In_ PPH_THREAD_ITEM Thread, _In_ ULONG ThreadPriorityWin32) |
BOOLEAN | PhUiSetIoPriorityThread (_In_ HWND hWnd, _In_ PPH_THREAD_ITEM Thread, _In_ ULONG IoPriority) |
BOOLEAN | PhUiSetPagePriorityThread (_In_ HWND hWnd, _In_ PPH_THREAD_ITEM Thread, _In_ ULONG PagePriority) |
BOOLEAN | PhUiUnloadModule (_In_ HWND hWnd, _In_ HANDLE ProcessId, _In_ PPH_MODULE_ITEM Module) |
BOOLEAN | PhUiFreeMemory (_In_ HWND hWnd, _In_ HANDLE ProcessId, _In_ PPH_MEMORY_ITEM MemoryItem, _In_ BOOLEAN Free) |
BOOLEAN | PhUiCloseHandles (_In_ HWND hWnd, _In_ HANDLE ProcessId, _In_ PPH_HANDLE_ITEM *Handles, _In_ ULONG NumberOfHandles, _In_ BOOLEAN Warn) |
BOOLEAN | PhUiSetAttributesHandle (_In_ HWND hWnd, _In_ HANDLE ProcessId, _In_ PPH_HANDLE_ITEM Handle, _In_ ULONG Attributes) |
typedef DWORD(WINAPI * _SetTcpEntry)(_In_ PMIB_TCPROW pTcpRow) |
HRESULT CALLBACK PhpElevateActionCallbackProc | ( | _In_ HWND | hwnd, |
_In_ UINT | uNotification, | ||
_In_ WPARAM | wParam, | ||
_In_ LPARAM | lParam, | ||
_In_ LONG_PTR | dwRefData | ||
) |
VOID PhpGetPhSvcPortName | ( | _In_ PH_PHSVC_MODE | Mode, |
_Out_ PUNICODE_STRING | PortName | ||
) |
BOOLEAN PhpShowElevatePrompt | ( | _In_ HWND | hWnd, |
_In_ PWSTR | Message, | ||
_In_ NTSTATUS | Status, | ||
_Out_ PINT | Button | ||
) |
BOOLEAN PhpShowErrorAndConnectToPhSvc | ( | _In_ HWND | hWnd, |
_In_ PWSTR | Message, | ||
_In_ NTSTATUS | Status, | ||
_Out_ PBOOLEAN | Connected | ||
) |
Shows an error, prompts for elevation, and connects to phsvc.
hWnd | The window to display user interface components on. |
Message | A message describing the operation that failed. |
Status | A NTSTATUS value. |
Connected | A variable which receives TRUE if the user elevated the action and phsvc was started, or FALSE if the user cancelled elevation. If the value is TRUE, you need to perform any necessary phsvc calls and use PhUiDisconnectFromPhSvc() to disconnect from phsvc. |
BOOLEAN PhpShowErrorAndElevateAction | ( | _In_ HWND | hWnd, |
_In_ PWSTR | Message, | ||
_In_ NTSTATUS | Status, | ||
_In_ PWSTR | Command, | ||
_Out_ PBOOLEAN | Success | ||
) |
Shows an error, prompts for elevation, and executes a command.
hWnd | The window to display user interface components on. |
Message | A message describing the operation that failed. |
Status | A NTSTATUS value. |
Command | The arguments to pass to the new instance of the application, if required. |
Success | A variable which receives TRUE if the elevated action succeeded or FALSE if the action failed. |
BOOLEAN PhpStartPhSvcProcess | ( | _In_opt_ HWND | hWnd, |
_In_ PH_PHSVC_MODE | Mode | ||
) |
BOOLEAN PhpUiTerminateTreeProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process, | ||
_In_ PVOID | Processes, | ||
_Inout_ PBOOLEAN | Success | ||
) |
BOOLEAN PhUiCloseConnections | ( | _In_ HWND | hWnd, |
_In_ PPH_NETWORK_ITEM * | Connections, | ||
_In_ ULONG | NumberOfConnections | ||
) |
BOOLEAN PhUiCloseHandles | ( | _In_ HWND | hWnd, |
_In_ HANDLE | ProcessId, | ||
_In_ PPH_HANDLE_ITEM * | Handles, | ||
_In_ ULONG | NumberOfHandles, | ||
_In_ BOOLEAN | Warn | ||
) |
BOOLEAN PhUiConnectSession | ( | _In_ HWND | hWnd, |
_In_ ULONG | SessionId | ||
) |
BOOLEAN PhUiConnectToPhSvc | ( | _In_opt_ HWND | hWnd, |
_In_ BOOLEAN | ConnectOnly | ||
) |
BOOLEAN PhUiConnectToPhSvcEx | ( | _In_opt_ HWND | hWnd, |
_In_ PH_PHSVC_MODE | Mode, | ||
_In_ BOOLEAN | ConnectOnly | ||
) |
Connects to phsvc.
hWnd | The window to display user interface components on. |
Mode | The type of phsvc instance to connect to. |
ConnectOnly | TRUE to only try to connect to phsvc, otherwise FALSE to try to elevate and start phsvc if the initial connection attempt failed. |
BOOLEAN PhUiContinueService | ( | _In_ HWND | hWnd, |
_In_ PPH_SERVICE_ITEM | Service | ||
) |
BOOLEAN PhUiDebugProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process | ||
) |
BOOLEAN PhUiDeleteService | ( | _In_ HWND | hWnd, |
_In_ PPH_SERVICE_ITEM | Service | ||
) |
BOOLEAN PhUiDetachFromDebuggerProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process | ||
) |
BOOLEAN PhUiDisconnectSession | ( | _In_ HWND | hWnd, |
_In_ ULONG | SessionId | ||
) |
BOOLEAN PhUiForceTerminateThreads | ( | _In_ HWND | hWnd, |
_In_ HANDLE | ProcessId, | ||
_In_ PPH_THREAD_ITEM * | Threads, | ||
_In_ ULONG | NumberOfThreads | ||
) |
BOOLEAN PhUiFreeMemory | ( | _In_ HWND | hWnd, |
_In_ HANDLE | ProcessId, | ||
_In_ PPH_MEMORY_ITEM | MemoryItem, | ||
_In_ BOOLEAN | Free | ||
) |
BOOLEAN PhUiInjectDllProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process | ||
) |
BOOLEAN PhUiLogoffSession | ( | _In_ HWND | hWnd, |
_In_ ULONG | SessionId | ||
) |
BOOLEAN PhUiPauseService | ( | _In_ HWND | hWnd, |
_In_ PPH_SERVICE_ITEM | Service | ||
) |
BOOLEAN PhUiReduceWorkingSetProcesses | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM * | Processes, | ||
_In_ ULONG | NumberOfProcesses | ||
) |
BOOLEAN PhUiRestartComputer | ( | _In_ HWND | hWnd, |
_In_ ULONG | Flags | ||
) |
BOOLEAN PhUiRestartProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process | ||
) |
BOOLEAN PhUiResumeProcesses | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM * | Processes, | ||
_In_ ULONG | NumberOfProcesses | ||
) |
BOOLEAN PhUiResumeThreads | ( | _In_ HWND | hWnd, |
_In_ PPH_THREAD_ITEM * | Threads, | ||
_In_ ULONG | NumberOfThreads | ||
) |
BOOLEAN PhUiSetAttributesHandle | ( | _In_ HWND | hWnd, |
_In_ HANDLE | ProcessId, | ||
_In_ PPH_HANDLE_ITEM | Handle, | ||
_In_ ULONG | Attributes | ||
) |
BOOLEAN PhUiSetDepStatusProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process | ||
) |
BOOLEAN PhUiSetIoPriorityProcesses | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM * | Processes, | ||
_In_ ULONG | NumberOfProcesses, | ||
_In_ ULONG | IoPriority | ||
) |
BOOLEAN PhUiSetIoPriorityThread | ( | _In_ HWND | hWnd, |
_In_ PPH_THREAD_ITEM | Thread, | ||
_In_ ULONG | IoPriority | ||
) |
BOOLEAN PhUiSetPagePriorityProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process, | ||
_In_ ULONG | PagePriority | ||
) |
BOOLEAN PhUiSetPagePriorityThread | ( | _In_ HWND | hWnd, |
_In_ PPH_THREAD_ITEM | Thread, | ||
_In_ ULONG | PagePriority | ||
) |
BOOLEAN PhUiSetPriorityProcesses | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM * | Processes, | ||
_In_ ULONG | NumberOfProcesses, | ||
_In_ ULONG | PriorityClass | ||
) |
BOOLEAN PhUiSetPriorityThread | ( | _In_ HWND | hWnd, |
_In_ PPH_THREAD_ITEM | Thread, | ||
_In_ ULONG | ThreadPriorityWin32 | ||
) |
BOOLEAN PhUiSetProtectionProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process | ||
) |
BOOLEAN PhUiSetVirtualizationProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process, | ||
_In_ BOOLEAN | Enable | ||
) |
BOOLEAN PhUiShutdownComputer | ( | _In_ HWND | hWnd, |
_In_ ULONG | Flags | ||
) |
BOOLEAN PhUiStartService | ( | _In_ HWND | hWnd, |
_In_ PPH_SERVICE_ITEM | Service | ||
) |
BOOLEAN PhUiStopService | ( | _In_ HWND | hWnd, |
_In_ PPH_SERVICE_ITEM | Service | ||
) |
BOOLEAN PhUiSuspendProcesses | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM * | Processes, | ||
_In_ ULONG | NumberOfProcesses | ||
) |
BOOLEAN PhUiSuspendThreads | ( | _In_ HWND | hWnd, |
_In_ PPH_THREAD_ITEM * | Threads, | ||
_In_ ULONG | NumberOfThreads | ||
) |
BOOLEAN PhUiTerminateProcesses | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM * | Processes, | ||
_In_ ULONG | NumberOfProcesses | ||
) |
BOOLEAN PhUiTerminateThreads | ( | _In_ HWND | hWnd, |
_In_ PPH_THREAD_ITEM * | Threads, | ||
_In_ ULONG | NumberOfThreads | ||
) |
BOOLEAN PhUiTerminateTreeProcess | ( | _In_ HWND | hWnd, |
_In_ PPH_PROCESS_ITEM | Process | ||
) |
BOOLEAN PhUiUnloadModule | ( | _In_ HWND | hWnd, |
_In_ HANDLE | ProcessId, | ||
_In_ PPH_MODULE_ITEM | Module | ||
) |