Process Hacker
phsvccl.h
Go to the documentation of this file.
1 #ifndef PH_PHSVCCL_H
2 #define PH_PHSVCCL_H
3 
4 #include <phsvcapi.h>
5 
6 extern HANDLE PhSvcClServerProcessId;
7 
8 NTSTATUS PhSvcConnectToServer(
9  _In_ PUNICODE_STRING PortName,
10  _In_opt_ SIZE_T PortSectionSize
11  );
12 
14  VOID
15  );
16 
18  _In_ PVOID Memory
19  );
20 
21 PVOID PhSvcpCreateString(
22  _In_opt_ PVOID String,
23  _In_ SIZE_T Length,
24  _Out_ PPH_RELATIVE_STRINGREF StringRef
25  );
26 
27 NTSTATUS PhSvcCallPlugin(
28  _In_ PPH_STRINGREF ApiId,
29  _In_reads_bytes_opt_(InLength) PVOID InBuffer,
30  _In_ ULONG InLength,
31  _Out_writes_bytes_opt_(OutLength) PVOID OutBuffer,
32  _In_ ULONG OutLength
33  );
34 
36  _In_ PPH_RUNAS_SERVICE_PARAMETERS Parameters
37  );
38 
39 NTSTATUS PhSvcCallUnloadDriver(
40  _In_opt_ PVOID BaseAddress,
41  _In_opt_ PWSTR Name
42  );
43 
45  _In_ HANDLE ProcessId,
47  _In_ ULONG Argument
48  );
49 
51  _In_ PWSTR ServiceName,
53  );
54 
55 NTSTATUS PhSvcCallCreateService(
56  _In_ PWSTR ServiceName,
57  _In_opt_ PWSTR DisplayName,
58  _In_ ULONG ServiceType,
59  _In_ ULONG StartType,
60  _In_ ULONG ErrorControl,
61  _In_opt_ PWSTR BinaryPathName,
62  _In_opt_ PWSTR LoadOrderGroup,
63  _Out_opt_ PULONG TagId,
64  _In_opt_ PWSTR Dependencies,
65  _In_opt_ PWSTR ServiceStartName,
66  _In_opt_ PWSTR Password
67  );
68 
69 // begin_phapppub
72  _In_ PWSTR ServiceName,
73  _In_ ULONG ServiceType,
74  _In_ ULONG StartType,
75  _In_ ULONG ErrorControl,
76  _In_opt_ PWSTR BinaryPathName,
77  _In_opt_ PWSTR LoadOrderGroup,
78  _Out_opt_ PULONG TagId,
79  _In_opt_ PWSTR Dependencies,
80  _In_opt_ PWSTR ServiceStartName,
81  _In_opt_ PWSTR Password,
82  _In_opt_ PWSTR DisplayName
83  );
84 
87  _In_ PWSTR ServiceName,
88  _In_ ULONG InfoLevel,
89  _In_ PVOID Info
90  );
91 // end_phapppub
92 
93 NTSTATUS PhSvcCallSetTcpEntry(
94  _In_ PVOID TcpRow
95  );
96 
97 NTSTATUS PhSvcCallControlThread(
98  _In_ HANDLE ThreadId,
100  _In_ ULONG Argument
101  );
102 
103 NTSTATUS PhSvcCallAddAccountRight(
104  _In_ PSID AccountSid,
105  _In_ PUNICODE_STRING UserRight
106  );
107 
109  _In_ PPH_RUNAS_SERVICE_PARAMETERS Parameters
110  );
111 
113  _In_ SYSTEM_MEMORY_LIST_COMMAND Command
114  );
115 
116 // begin_phapppub
117 PHLIBAPI
118 NTSTATUS PhSvcCallPostMessage(
119  _In_opt_ HWND hWnd,
120  _In_ UINT Msg,
121  _In_ WPARAM wParam,
122  _In_ LPARAM lParam
123  );
124 
125 PHLIBAPI
126 NTSTATUS PhSvcCallSendMessage(
127  _In_opt_ HWND hWnd,
128  _In_ UINT Msg,
129  _In_ WPARAM wParam,
130  _In_ LPARAM lParam
131  );
132 // end_phapppub
133 
135  _In_ PWSTR FileName
136  );
137 
139  _In_ PWSTR ServiceName,
140  _In_ SECURITY_INFORMATION SecurityInformation,
141  _In_ PSECURITY_DESCRIPTOR SecurityDescriptor
142  );
143 
144 NTSTATUS PhSvcCallLoadDbgHelp(
145  _In_ PWSTR DbgHelpPath
146  );
147 
149  _In_ HANDLE ProcessHandle,
150  _In_ HANDLE ProcessId,
151  _In_ HANDLE FileHandle,
152  _In_ ULONG DumpType
153  );
154 
155 #endif