-
C program to enable and disable USB port
Disable port
#include
void main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Ser vices\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
}
Enable port
#include
void main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Ser vices\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
}
Last edited by murtazrocks58; 05-25-2011 at 02:20 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules