kulkarniquiet Posted August 7, 2007 Share Posted August 7, 2007 Hi There,Myself Abhijit and need some input from your side about DEVCON. I hope you will help me in this regard.I am working on module in which USB drive needs to be ENABLED or DIABLED through command line argument ON or OFF.Initially I achieved it by changing registry values for USBSTOR and imagepath location. But as REBOOTING of system is required, I used devcon.exe to enable or disable USB drive. I used command Devcon disable USBSTOR\DISK* to Disable USB and devcon enable USBSTOR\DISK* to enable USB. Devcon.exe was placed in my code folder.Now problem is I want to remove devcon dependency and use devcon's code in my application for enabling or disabling USB drive.I am not getting which functions to used for the same and how?Do you have any idea or sample code in this regard with you so that i can proceed further.I am getting lot of compilations errors when I include devcon.h and use functions from devcon.cpp like enumeratedevices and so on.Can you please help me in this regard as this is very urgent for me? I do not have any prior knowledge about devcon.Hoping a positive reply from your side.Best Regards,Abhijit Kulkarni, Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 7, 2007 Share Posted August 7, 2007 Warning raised all but this post deleted!!!!DO NOT MULTI-POST! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now