Wednesday, April 6, 2011

C Program to Disable/Enable USB Ports

Compile and RUN *.exe of these programs to Disable/Enable USB P0rts...

/* Disable.c */

#include

void main()

{

system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");

}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


/* Enable.c */

#include

void main()

{

system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");

}

2 comments:

  1. nice one ... bt should i try this at home ??????

    ReplyDelete
  2. SURE U CAN USE IT AT UR HOME.... 100% SAFE...!

    ReplyDelete