Process Hacker
|
#include <phapp.h>
#include <secedit.h>
#include <phsvc.h>
#include <phplug.h>
#include <extmgri.h>
#include <symprv.h>
#include <accctrl.h>
Go to the source code of this file.
Typedefs | |
typedef struct _PHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS | PHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS |
typedef struct _PHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS * | PPHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS |
Functions | |
C_ASSERT (sizeof(PhSvcApiCallTable)/sizeof(PPHSVC_API_PROCEDURE)==PhSvcMaximumApiNumber-1) | |
NTSTATUS | PhSvcApiInitialization (VOID) |
VOID | PhSvcDispatchApiCall (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload, _Out_ PHANDLE ReplyPortHandle) |
PVOID | PhSvcValidateString (_In_ PPH_RELATIVE_STRINGREF String, _In_ ULONG Alignment) |
NTSTATUS | PhSvcProbeBuffer (_In_ PPH_RELATIVE_STRINGREF String, _In_ ULONG Alignment, _In_ BOOLEAN AllowNull, _Out_ PVOID *Pointer) |
NTSTATUS | PhSvcCaptureBuffer (_In_ PPH_RELATIVE_STRINGREF String, _In_ BOOLEAN AllowNull, _Out_ PVOID *CapturedBuffer) |
NTSTATUS | PhSvcCaptureString (_In_ PPH_RELATIVE_STRINGREF String, _In_ BOOLEAN AllowNull, _Out_ PPH_STRING *CapturedString) |
NTSTATUS | PhSvcCaptureSid (_In_ PPH_RELATIVE_STRINGREF String, _In_ BOOLEAN AllowNull, _Out_ PSID *CapturedSid) |
NTSTATUS | PhSvcCaptureSecurityDescriptor (_In_ PPH_RELATIVE_STRINGREF String, _In_ BOOLEAN AllowNull, _In_ SECURITY_INFORMATION RequiredInformation, _Out_ PSECURITY_DESCRIPTOR *CapturedSecurityDescriptor) |
NTSTATUS | PhSvcApiDefault (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiPlugin (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcpCaptureRunAsServiceParameters (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload, _Out_ PPH_RUNAS_SERVICE_PARAMETERS Parameters, _Out_ PPHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS CapturedParameters) |
VOID | PhSvcpReleaseRunAsServiceParameters (_In_ PPHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS CapturedParameters) |
NTSTATUS | PhSvcpValidateRunAsServiceParameters (_In_ PPH_RUNAS_SERVICE_PARAMETERS Parameters) |
NTSTATUS | PhSvcApiExecuteRunAsCommand (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiUnloadDriver (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiControlProcess (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiControlService (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiCreateService (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiChangeServiceConfig (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcpUnpackRoot (_In_ PPH_RELATIVE_STRINGREF PackedData, _In_ PVOID CapturedBuffer, _In_ SIZE_T Length, _Out_ PVOID *ValidatedBuffer) |
NTSTATUS | PhSvcpUnpackBuffer (_In_ PPH_RELATIVE_STRINGREF PackedData, _In_ PVOID CapturedBuffer, _In_ PVOID *OffsetInBuffer, _In_ SIZE_T Length, _In_ ULONG Alignment, _In_ BOOLEAN AllowNull) |
NTSTATUS | PhSvcpUnpackStringZ (_In_ PPH_RELATIVE_STRINGREF PackedData, _In_ PVOID CapturedBuffer, _In_ PVOID *OffsetInBuffer, _In_ BOOLEAN Multi, _In_ BOOLEAN AllowNull) |
NTSTATUS | PhSvcApiChangeServiceConfig2 (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiSetTcpEntry (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiControlThread (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiAddAccountRight (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiInvokeRunAsService (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiIssueMemoryListCommand (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiPostMessage (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiSendMessage (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiCreateProcessIgnoreIfeoDebugger (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiSetServiceSecurity (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiLoadDbgHelp (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
NTSTATUS | PhSvcApiWriteMiniDumpProcess (_In_ PPHSVC_CLIENT Client, _Inout_ PPHSVC_API_PAYLOAD Payload) |
Variables | |
PPHSVC_API_PROCEDURE | PhSvcApiCallTable [] |
typedef struct _PHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS PHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS |
typedef struct _PHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS * PPHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS |
C_ASSERT | ( | sizeof(PhSvcApiCallTable)/sizeof(PPHSVC_API_PROCEDURE) | = =PhSvcMaximumApiNumber-1 | ) |
NTSTATUS PhSvcApiAddAccountRight | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiChangeServiceConfig | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiChangeServiceConfig2 | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiControlProcess | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiControlService | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiControlThread | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiCreateProcessIgnoreIfeoDebugger | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiCreateService | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiDefault | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiExecuteRunAsCommand | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiInvokeRunAsService | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiIssueMemoryListCommand | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiLoadDbgHelp | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiPlugin | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiPostMessage | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiSendMessage | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiSetServiceSecurity | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiSetTcpEntry | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiUnloadDriver | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcApiWriteMiniDumpProcess | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload | ||
) |
NTSTATUS PhSvcCaptureBuffer | ( | _In_ PPH_RELATIVE_STRINGREF | String, |
_In_ BOOLEAN | AllowNull, | ||
_Out_ PVOID * | CapturedBuffer | ||
) |
NTSTATUS PhSvcCaptureSecurityDescriptor | ( | _In_ PPH_RELATIVE_STRINGREF | String, |
_In_ BOOLEAN | AllowNull, | ||
_In_ SECURITY_INFORMATION | RequiredInformation, | ||
_Out_ PSECURITY_DESCRIPTOR * | CapturedSecurityDescriptor | ||
) |
NTSTATUS PhSvcCaptureSid | ( | _In_ PPH_RELATIVE_STRINGREF | String, |
_In_ BOOLEAN | AllowNull, | ||
_Out_ PSID * | CapturedSid | ||
) |
NTSTATUS PhSvcCaptureString | ( | _In_ PPH_RELATIVE_STRINGREF | String, |
_In_ BOOLEAN | AllowNull, | ||
_Out_ PPH_STRING * | CapturedString | ||
) |
VOID PhSvcDispatchApiCall | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload, | ||
_Out_ PHANDLE | ReplyPortHandle | ||
) |
NTSTATUS PhSvcpCaptureRunAsServiceParameters | ( | _In_ PPHSVC_CLIENT | Client, |
_Inout_ PPHSVC_API_PAYLOAD | Payload, | ||
_Out_ PPH_RUNAS_SERVICE_PARAMETERS | Parameters, | ||
_Out_ PPHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS | CapturedParameters | ||
) |
VOID PhSvcpReleaseRunAsServiceParameters | ( | _In_ PPHSVCP_CAPTURED_RUNAS_SERVICE_PARAMETERS | CapturedParameters | ) |
NTSTATUS PhSvcProbeBuffer | ( | _In_ PPH_RELATIVE_STRINGREF | String, |
_In_ ULONG | Alignment, | ||
_In_ BOOLEAN | AllowNull, | ||
_Out_ PVOID * | Pointer | ||
) |
NTSTATUS PhSvcpUnpackBuffer | ( | _In_ PPH_RELATIVE_STRINGREF | PackedData, |
_In_ PVOID | CapturedBuffer, | ||
_In_ PVOID * | OffsetInBuffer, | ||
_In_ SIZE_T | Length, | ||
_In_ ULONG | Alignment, | ||
_In_ BOOLEAN | AllowNull | ||
) |
NTSTATUS PhSvcpUnpackRoot | ( | _In_ PPH_RELATIVE_STRINGREF | PackedData, |
_In_ PVOID | CapturedBuffer, | ||
_In_ SIZE_T | Length, | ||
_Out_ PVOID * | ValidatedBuffer | ||
) |
NTSTATUS PhSvcpUnpackStringZ | ( | _In_ PPH_RELATIVE_STRINGREF | PackedData, |
_In_ PVOID | CapturedBuffer, | ||
_In_ PVOID * | OffsetInBuffer, | ||
_In_ BOOLEAN | Multi, | ||
_In_ BOOLEAN | AllowNull | ||
) |
NTSTATUS PhSvcpValidateRunAsServiceParameters | ( | _In_ PPH_RUNAS_SERVICE_PARAMETERS | Parameters | ) |
PVOID PhSvcValidateString | ( | _In_ PPH_RELATIVE_STRINGREF | String, |
_In_ ULONG | Alignment | ||
) |
PPHSVC_API_PROCEDURE PhSvcApiCallTable[] |