Process Hacker
phsvccl.h File Reference
#include <phsvcapi.h>

Go to the source code of this file.

Functions

NTSTATUS PhSvcConnectToServer (_In_ PUNICODE_STRING PortName, _In_opt_ SIZE_T PortSectionSize)
 
VOID PhSvcDisconnectFromServer (VOID)
 
VOID PhSvcpFreeHeap (_In_ PVOID Memory)
 
PVOID PhSvcpCreateString (_In_opt_ PVOID String, _In_ SIZE_T Length, _Out_ PPH_RELATIVE_STRINGREF StringRef)
 
NTSTATUS PhSvcCallPlugin (_In_ PPH_STRINGREF ApiId, _In_reads_bytes_opt_(InLength) PVOID InBuffer, _In_ ULONG InLength, _Out_writes_bytes_opt_(OutLength) PVOID OutBuffer, _In_ ULONG OutLength)
 
NTSTATUS PhSvcCallExecuteRunAsCommand (_In_ PPH_RUNAS_SERVICE_PARAMETERS Parameters)
 
NTSTATUS PhSvcCallUnloadDriver (_In_opt_ PVOID BaseAddress, _In_opt_ PWSTR Name)
 
NTSTATUS PhSvcCallControlProcess (_In_ HANDLE ProcessId, _In_ PHSVC_API_CONTROLPROCESS_COMMAND Command, _In_ ULONG Argument)
 
NTSTATUS PhSvcCallControlService (_In_ PWSTR ServiceName, _In_ PHSVC_API_CONTROLSERVICE_COMMAND Command)
 
NTSTATUS PhSvcCallCreateService (_In_ PWSTR ServiceName, _In_opt_ PWSTR DisplayName, _In_ ULONG ServiceType, _In_ ULONG StartType, _In_ ULONG ErrorControl, _In_opt_ PWSTR BinaryPathName, _In_opt_ PWSTR LoadOrderGroup, _Out_opt_ PULONG TagId, _In_opt_ PWSTR Dependencies, _In_opt_ PWSTR ServiceStartName, _In_opt_ PWSTR Password)
 
PHLIBAPI NTSTATUS PhSvcCallChangeServiceConfig (_In_ PWSTR ServiceName, _In_ ULONG ServiceType, _In_ ULONG StartType, _In_ ULONG ErrorControl, _In_opt_ PWSTR BinaryPathName, _In_opt_ PWSTR LoadOrderGroup, _Out_opt_ PULONG TagId, _In_opt_ PWSTR Dependencies, _In_opt_ PWSTR ServiceStartName, _In_opt_ PWSTR Password, _In_opt_ PWSTR DisplayName)
 
PHLIBAPI NTSTATUS PhSvcCallChangeServiceConfig2 (_In_ PWSTR ServiceName, _In_ ULONG InfoLevel, _In_ PVOID Info)
 
NTSTATUS PhSvcCallSetTcpEntry (_In_ PVOID TcpRow)
 
NTSTATUS PhSvcCallControlThread (_In_ HANDLE ThreadId, _In_ PHSVC_API_CONTROLTHREAD_COMMAND Command, _In_ ULONG Argument)
 
NTSTATUS PhSvcCallAddAccountRight (_In_ PSID AccountSid, _In_ PUNICODE_STRING UserRight)
 
NTSTATUS PhSvcCallInvokeRunAsService (_In_ PPH_RUNAS_SERVICE_PARAMETERS Parameters)
 
NTSTATUS PhSvcCallIssueMemoryListCommand (_In_ SYSTEM_MEMORY_LIST_COMMAND Command)
 
PHLIBAPI NTSTATUS PhSvcCallPostMessage (_In_opt_ HWND hWnd, _In_ UINT Msg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
PHLIBAPI NTSTATUS PhSvcCallSendMessage (_In_opt_ HWND hWnd, _In_ UINT Msg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
NTSTATUS PhSvcCallCreateProcessIgnoreIfeoDebugger (_In_ PWSTR FileName)
 
NTSTATUS PhSvcCallSetServiceSecurity (_In_ PWSTR ServiceName, _In_ SECURITY_INFORMATION SecurityInformation, _In_ PSECURITY_DESCRIPTOR SecurityDescriptor)
 
NTSTATUS PhSvcCallLoadDbgHelp (_In_ PWSTR DbgHelpPath)
 
NTSTATUS PhSvcCallWriteMiniDumpProcess (_In_ HANDLE ProcessHandle, _In_ HANDLE ProcessId, _In_ HANDLE FileHandle, _In_ ULONG DumpType)
 

Variables

HANDLE PhSvcClServerProcessId
 

Function Documentation

NTSTATUS PhSvcCallAddAccountRight ( _In_ PSID  AccountSid,
_In_ PUNICODE_STRING  UserRight 
)

Definition at line 938 of file clapi.c.

PHLIBAPI NTSTATUS PhSvcCallChangeServiceConfig ( _In_ PWSTR  ServiceName,
_In_ ULONG  ServiceType,
_In_ ULONG  StartType,
_In_ ULONG  ErrorControl,
_In_opt_ PWSTR  BinaryPathName,
_In_opt_ PWSTR  LoadOrderGroup,
_Out_opt_ PULONG  TagId,
_In_opt_ PWSTR  Dependencies,
_In_opt_ PWSTR  ServiceStartName,
_In_opt_ PWSTR  Password,
_In_opt_ PWSTR  DisplayName 
)

Definition at line 527 of file clapi.c.

PHLIBAPI NTSTATUS PhSvcCallChangeServiceConfig2 ( _In_ PWSTR  ServiceName,
_In_ ULONG  InfoLevel,
_In_ PVOID  Info 
)

Definition at line 733 of file clapi.c.

NTSTATUS PhSvcCallControlProcess ( _In_ HANDLE  ProcessId,
_In_ PHSVC_API_CONTROLPROCESS_COMMAND  Command,
_In_ ULONG  Argument 
)

Definition at line 372 of file clapi.c.

NTSTATUS PhSvcCallControlService ( _In_ PWSTR  ServiceName,
_In_ PHSVC_API_CONTROLSERVICE_COMMAND  Command 
)

Definition at line 391 of file clapi.c.

NTSTATUS PhSvcCallControlThread ( _In_ HANDLE  ThreadId,
_In_ PHSVC_API_CONTROLTHREAD_COMMAND  Command,
_In_ ULONG  Argument 
)

Definition at line 919 of file clapi.c.

NTSTATUS PhSvcCallCreateProcessIgnoreIfeoDebugger ( _In_ PWSTR  FileName)

Definition at line 1033 of file clapi.c.

NTSTATUS PhSvcCallCreateService ( _In_ PWSTR  ServiceName,
_In_opt_ PWSTR  DisplayName,
_In_ ULONG  ServiceType,
_In_ ULONG  StartType,
_In_ ULONG  ErrorControl,
_In_opt_ PWSTR  BinaryPathName,
_In_opt_ PWSTR  LoadOrderGroup,
_Out_opt_ PULONG  TagId,
_In_opt_ PWSTR  Dependencies,
_In_opt_ PWSTR  ServiceStartName,
_In_opt_ PWSTR  Password 
)

Definition at line 423 of file clapi.c.

NTSTATUS PhSvcCallExecuteRunAsCommand ( _In_ PPH_RUNAS_SERVICE_PARAMETERS  Parameters)

Definition at line 331 of file clapi.c.

NTSTATUS PhSvcCallInvokeRunAsService ( _In_ PPH_RUNAS_SERVICE_PARAMETERS  Parameters)

Definition at line 969 of file clapi.c.

NTSTATUS PhSvcCallIssueMemoryListCommand ( _In_ SYSTEM_MEMORY_LIST_COMMAND  Command)

Definition at line 976 of file clapi.c.

NTSTATUS PhSvcCallLoadDbgHelp ( _In_ PWSTR  DbgHelpPath)

Definition at line 1131 of file clapi.c.

NTSTATUS PhSvcCallPlugin ( _In_ PPH_STRINGREF  ApiId,
_In_reads_bytes_opt_(InLength) PVOID  InBuffer,
_In_ ULONG  InLength,
_Out_writes_bytes_opt_(OutLength) PVOID  OutBuffer,
_In_ ULONG  OutLength 
)

Definition at line 221 of file clapi.c.

PHLIBAPI NTSTATUS PhSvcCallPostMessage ( _In_opt_ HWND  hWnd,
_In_ UINT  Msg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 991 of file clapi.c.

PHLIBAPI NTSTATUS PhSvcCallSendMessage ( _In_opt_ HWND  hWnd,
_In_ UINT  Msg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 1012 of file clapi.c.

NTSTATUS PhSvcCallSetServiceSecurity ( _In_ PWSTR  ServiceName,
_In_ SECURITY_INFORMATION  SecurityInformation,
_In_ PSECURITY_DESCRIPTOR  SecurityDescriptor 
)

Definition at line 1088 of file clapi.c.

NTSTATUS PhSvcCallSetTcpEntry ( _In_ PVOID  TcpRow)

Definition at line 891 of file clapi.c.

NTSTATUS PhSvcCallUnloadDriver ( _In_opt_ PVOID  BaseAddress,
_In_opt_ PWSTR  Name 
)

Definition at line 338 of file clapi.c.

NTSTATUS PhSvcCallWriteMiniDumpProcess ( _In_ HANDLE  ProcessHandle,
_In_ HANDLE  ProcessId,
_In_ HANDLE  FileHandle,
_In_ ULONG  DumpType 
)

Definition at line 1158 of file clapi.c.

NTSTATUS PhSvcConnectToServer ( _In_ PUNICODE_STRING  PortName,
_In_opt_ SIZE_T  PortSectionSize 
)

Definition at line 30 of file clapi.c.

VOID PhSvcDisconnectFromServer ( VOID  )

Definition at line 122 of file clapi.c.

PVOID PhSvcpCreateString ( _In_opt_ PVOID  String,
_In_ SIZE_T  Length,
_Out_ PPH_RELATIVE_STRINGREF  StringRef 
)

Definition at line 171 of file clapi.c.

VOID PhSvcpFreeHeap ( _In_ PVOID  Memory)

Definition at line 161 of file clapi.c.

Variable Documentation

HANDLE PhSvcClServerProcessId

Definition at line 28 of file clapi.c.