1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-17 21:24:57 +03:00

v4.05-9422-beta

This commit is contained in:
dnobori
2014-02-17 03:16:50 +09:00
parent bad6a4c22b
commit e8ce5fa014
285 changed files with 346 additions and 277 deletions

View File

@ -230,9 +230,33 @@ bool SuInstallDriverInner(bool force)
// Get whether the current OS is supported by SeLow
bool SuIsSupportedOs()
{
// At present, this doesn't support any OS.
return false;
//return MsIsWindows7();
if (MsRegReadIntEx2(REG_LOCAL_MACHINE, SL_REG_KEY_NAME, "DisableSeLow", false, true) != 0)
{
// Force disable
return false;
}
// If the Su driver is currently running,
// then return true.
if (MsIsServiceRunning(SL_PROTOCOL_NAME))
{
return true;
}
// Currently Windows 8.1 or later are supported
if (MsIsWindows81() == false)
{
return false;
}
// If Microsoft Routing and Remote Access service is running,
// then return false.
if (MsIsServiceRunning("RemoteAccess"))
{
return false;
}
return true;
}
// Write the next packet to the driver