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:
@@ -64,7 +64,7 @@ inline BOOL SetSelfStart(const char* sPath, const char* sNmae, StartupLogFunc Lo
|
||||
if (n != 0) {
|
||||
_Mprintf("提升权限失败,错误码:%d\n", n);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
// 写入的注册表路径
|
||||
#define REGEDIT_PATH "Software\\Microsoft\\Windows\\CurrentVersion\\Run"
|
||||
@@ -85,7 +85,7 @@ inline BOOL SetSelfStart(const char* sPath, const char* sNmae, StartupLogFunc Lo
|
||||
_Mprintf("写入注册表失败,错误码:%d\n", lRet);
|
||||
} else {
|
||||
_Mprintf("写入注册表成功:%s -> %s\n", sNmae, sPath);
|
||||
}
|
||||
}
|
||||
|
||||
// 关闭注册表
|
||||
RegCloseKey(hKey);
|
||||
|
||||
Reference in New Issue
Block a user