예제 #1
0
파일: Utils.cs 프로젝트: pasamsin/SolidCP
        public static bool IsWindowsFirewallExceptionsAllowed()
        {
            int ret = RegistryUtils.GetRegistryKeyInt32Value(@"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile", "DoNotAllowExceptions");

            return(ret != 1);
        }
예제 #2
0
파일: Utils.cs 프로젝트: pasamsin/SolidCP
        public static bool IsWindowsFirewallEnabled()
        {
            int ret = RegistryUtils.GetRegistryKeyInt32Value(@"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile", "EnableFirewall");

            return(ret == 1);
        }