| 
									
										
										
										
											2024-04-12 17:42:26 +08:00
										 |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <Windows.h>
 | 
					
						
							|  |  |  | #include <string>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | bool AddFirewallRule(bool add, LPWSTR exeName, LPWSTR exeFile); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-30 08:21:34 +08:00
										 |  |  | bool QueryServiceStatusExW(LPCWSTR serviceName, SERVICE_STATUS_PROCESS* status); | 
					
						
							| 
									
										
										
										
											2024-04-12 17:42:26 +08:00
										 |  |  | bool IsServiceRunningW(LPCWSTR serviceName); | 
					
						
							|  |  |  | bool MyCreateServiceW(LPCWSTR serviceName, LPCWSTR displayName, LPCWSTR binaryPath); | 
					
						
							|  |  |  | bool MyDeleteServiceW(LPCWSTR serviceName); | 
					
						
							|  |  |  | bool MyStartServiceW(LPCWSTR serviceName); | 
					
						
							|  |  |  | bool MyStopServiceW(LPCWSTR serviceName); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | std::wstring ReadConfig(const std::wstring& filename, const std::wstring& key); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-22 10:37:08 +08:00
										 |  |  | void UninstallDriver(LPCWSTR hardwareId, BOOL &rebootRequired); |