1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-24 10:29:53 +03:00

Compare commits

..

No commits in common. "e94240d9a0acd695f008f4cd92a88a5002f19e26" and "5d1ce1a2cd3e3681ff60f52db42a1b98280e0162" have entirely different histories.

3 changed files with 3 additions and 8 deletions

View File

@ -4259,7 +4259,7 @@ UINT MsService(char *name, SERVICE_FUNCTION *start, SERVICE_FUNCTION *stop, UINT
if ((mode == SVC_MODE_INSTALL || mode == SVC_MODE_UNINSTALL || mode == SVC_MODE_START || if ((mode == SVC_MODE_INSTALL || mode == SVC_MODE_UNINSTALL || mode == SVC_MODE_START ||
mode == SVC_MODE_STOP || mode == SVC_MODE_SERVICE) && mode == SVC_MODE_STOP || mode == SVC_MODE_SERVICE) &&
(IsNt() == false)) (ms->IsNt == false))
{ {
// Tried to use the command for the NT in non-WindowsNT system // Tried to use the command for the NT in non-WindowsNT system
MsgBox(NULL, MB_ICONSTOP, _UU("SVC_NT_ONLY")); MsgBox(NULL, MB_ICONSTOP, _UU("SVC_NT_ONLY"));

View File

@ -170,6 +170,7 @@ typedef struct MS
{ {
HINSTANCE hInst; HINSTANCE hInst;
HINSTANCE hKernel32; HINSTANCE hKernel32;
bool IsNt;
bool IsAdmin; bool IsAdmin;
HANDLE hCurrentProcess; HANDLE hCurrentProcess;
UINT CurrentProcessId; UINT CurrentProcessId;

View File

@ -6,9 +6,7 @@
// VPN Command Line Management Utility // VPN Command Line Management Utility
#include "Cedar/Cedar.h" #include "Cedar/Cedar.h"
#ifdef OS_WIN32
#include "Cedar/CMInner.h"
#endif
#include "Cedar/Command.h" #include "Cedar/Command.h"
#include "Mayaqua/Internat.h" #include "Mayaqua/Internat.h"
@ -41,10 +39,6 @@ int main(int argc, char *argv[])
#endif #endif
InitCedar(); InitCedar();
#ifdef OS_WIN32
CmExecUiHelperMain();
#endif
s = GetCommandLineUniStr(); s = GetCommandLineUniStr();
if (s == NULL) if (s == NULL)