Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
Disable USB
A small simple tool that disables USB drives in C++.
Here is the basic code that disables the USB. Simple registry editing
DWORD dwVal1 = 4;
HKEY hKey;
res=RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SYSTEM\\CurrentControlSet\\Services\\UsbStor", 0, KEY_ALL_ACCESS, &hKey); if(res!=ERROR_SUCCESS)
{
MessageBox(0,"Error Disabling USB","Error",MB_ICONEXCLAMATION|MB_OK );
}
res=RegSetValueEx (hKey, "Start", 0, REG_DWORD, (LPBYTE)&dwVal1 , sizeof(DWORD));
if(res==ERROR_SUCCESS)
MessageBox(0,"Disabling USB Done","Success",0);```
Here is the link to the tool
http://www.sendspace.com/file/cwzt9z
Oh God..
Actually I was posting it for starters who did not know about it on how to do it in a C\C++ program.
This was one of the small apps I wrote during my vacation a few years ago (It was written by myself..if u have doubt.., plz mail me on that address or something :) .
I have submitted a Win32 API registry editing functions article and thought that this thread would act as an example.. It was not accepted as it turned out blank on submission I was told.
Sorry if I had done something wrong… my account is not hacked lol :)