Searching...



How to disable USB port using c program?

7:32 AM
Hello Friends here is another new dashing tricks for all our users we glad to provide you such a tricks all in return we want is your like to our facebook page and we are very happy to serve you more. please caary on reading for the trick

So lets Discuss the trick its very simple all you have to do is follow the simple steps and try this trick at very low balance because it may can harm your balance if it fails to work or if you did any mistake in the procedure so the trick is


Today i am going to show you how to disable your system/laptop USB port by executing a simple c program.This is a quite simple program to disable the USB port and make it again accessible by executing another program.You can also manually do this by registry hack.
USB-block

Follow the following steps:

1. Copy the following code and paste it in notepad.Save the file with ‘.c’ extention for eg: blockusb.c or any other name.
#include
   void main()
{//code to block usb port:gotechpedia.blogspot.com
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
//code to block usb port:gotechpedia.blogspot.com
}
2. Again copy the following code and paste it in notepad.Save the file with ‘.c’ extention for eg: unblockusb.c or any other name.
#include
void main()
{//code to block usb port:gotechpedia.blogspot.com 
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
//code to block usb port:gotechpedia.blogspot.com 
}
3.Now compile and run both of the code.After compiling you will get two executable files blockusb.exe and unblockusb.exe in your TC directory.
4.Now if you double click on the blockusb.exe it will block all the usb port of your pc.If you want to enable it double click on unblock.exe.
5.That’s it.If you have any queries comment here and don’t forget to subscribe.