mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-22 07:14:15 +08:00
Improve: Change running client as admin to an option
This commit is contained in:
@@ -43,7 +43,9 @@ public:
|
||||
char buf[16] = {};
|
||||
sprintf_s(buf, "%d", GetCurrentProcessId());
|
||||
instance.pid = buf;
|
||||
instance.InitLogFile("C:\\Windows\\Temp", instance.pid);
|
||||
char logPath[MAX_PATH] = { 0 };
|
||||
GetEnvironmentVariableA("TEMP", logPath, MAX_PATH);
|
||||
instance.InitLogFile(logPath, instance.pid);
|
||||
#ifdef _WINDOWS
|
||||
instance.enable = true; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־Ĭ<D6BE>ϴ<EFBFBD><CFB4><EFBFBD>
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user