mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-22 07:14:15 +08:00
Feature: Support customizing client name and install directory
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// 服务配置:服务端使用不同的服务名
|
||||
// 服务配置:服务端使用不同的服务名
|
||||
#define SERVER_SERVICE_NAME "YamaControlService"
|
||||
#define SERVER_SERVICE_DISPLAY "Yama Control Service"
|
||||
#define SERVER_SERVICE_DESC "Provides remote desktop control server functionality."
|
||||
@@ -33,29 +33,29 @@ sc query YamaControlService
|
||||
// exePath - 输出参数,服务可执行文件路径(可为NULL)
|
||||
// exePathSize - exePath缓冲区大小
|
||||
// 返回: 成功返回TRUE
|
||||
BOOL ServerService_CheckStatus(BOOL* registered, BOOL* running,
|
||||
char* exePath, size_t exePathSize);
|
||||
BOOL ServerService_CheckStatus(BOOL* registered, BOOL* running,
|
||||
char* exePath, size_t exePathSize);
|
||||
|
||||
// 简单启动服务
|
||||
// 返回: ERROR_SUCCESS 或错误码
|
||||
int ServerService_StartSimple(void);
|
||||
// 简单启动服务
|
||||
// 返回: ERROR_SUCCESS 或错误码
|
||||
int ServerService_StartSimple(void);
|
||||
|
||||
// 运行服务(作为服务主入口)
|
||||
// 返回: ERROR_SUCCESS 或错误码
|
||||
int ServerService_Run(void);
|
||||
// 运行服务(作为服务主入口)
|
||||
// 返回: ERROR_SUCCESS 或错误码
|
||||
int ServerService_Run(void);
|
||||
|
||||
// 停止服务
|
||||
// 返回: ERROR_SUCCESS 或错误码
|
||||
int ServerService_Stop(void);
|
||||
// 停止服务
|
||||
// 返回: ERROR_SUCCESS 或错误码
|
||||
int ServerService_Stop(void);
|
||||
|
||||
// 安装服务
|
||||
BOOL ServerService_Install(void);
|
||||
// 安装服务
|
||||
BOOL ServerService_Install(void);
|
||||
|
||||
// 卸载服务
|
||||
BOOL ServerService_Uninstall(void);
|
||||
// 卸载服务
|
||||
BOOL ServerService_Uninstall(void);
|
||||
|
||||
// 服务工作线程
|
||||
DWORD WINAPI ServerService_WorkerThread(LPVOID lpParam);
|
||||
// 服务工作线程
|
||||
DWORD WINAPI ServerService_WorkerThread(LPVOID lpParam);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user