+ Reply to Thread
Results 1 to 1 of 1

Thread: C program to enable and disable USB port

  1. #1
    murtazrocks58 is offline Banned murtazrocks58 is an unknown quantity at this point
    Join Date
    Nov 2010
    Location
    Godhra
    Posts
    65

    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.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers