Click here to Skip to main content
15,926,035 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: Serial Int Question Pin
Luc Pattyn9-Aug-07 23:48
sitebuilderLuc Pattyn9-Aug-07 23:48 
GeneralRe: Serial Int Question Pin
cp987611-Aug-07 18:41
cp987611-Aug-07 18:41 
QuestionSelf-built vs. pre-built computers Pin
David Crow8-Aug-07 8:11
David Crow8-Aug-07 8:11 
AnswerRe: Self-built vs. pre-built computers Pin
Maximilien8-Aug-07 8:54
Maximilien8-Aug-07 8:54 
AnswerRe: Self-built vs. pre-built computers Pin
Dan Neely8-Aug-07 9:13
Dan Neely8-Aug-07 9:13 
AnswerRe: Self-built vs. pre-built computers Pin
dighn8-Aug-07 9:30
dighn8-Aug-07 9:30 
AnswerRe: Self-built vs. pre-built computers Pin
#realJSOP8-Aug-07 12:39
professional#realJSOP8-Aug-07 12:39 
QuestionUSB Drives Enable/Disable Pin
kulkarniquiet6-Aug-07 23:38
kulkarniquiet6-Aug-07 23:38 
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,

AnswerRe: USB Drives Enable/Disable Pin
#realJSOP7-Aug-07 2:50
professional#realJSOP7-Aug-07 2:50 
GeneralRe: USB Drives Enable/Disable Pin
kulkarniquiet7-Aug-07 3:10
kulkarniquiet7-Aug-07 3:10 
GeneralRe: USB Drives Enable/Disable Pin
GuyThiebaut10-Aug-07 6:10
professionalGuyThiebaut10-Aug-07 6:10 
QuestionLaptop Battary Pin
scorp_scorp5-Aug-07 3:57
scorp_scorp5-Aug-07 3:57 
AnswerRe: Laptop Battary Pin
Johpoke5-Aug-07 8:04
Johpoke5-Aug-07 8:04 
AnswerRe: Laptop Battary Pin
#realJSOP7-Aug-07 2:59
professional#realJSOP7-Aug-07 2:59 
AnswerRe: Laptop Battary Pin
Craster9-Aug-07 3:19
Craster9-Aug-07 3:19 
QuestionHDD failure Pin
matjame2-Aug-07 21:07
matjame2-Aug-07 21:07 
AnswerRe: HDD failure Pin
Johpoke3-Aug-07 4:53
Johpoke3-Aug-07 4:53 
GeneralRe: HDD failure Pin
matjame5-Aug-07 21:20
matjame5-Aug-07 21:20 
GeneralRe: HDD failure Pin
Dan Neely6-Aug-07 2:33
Dan Neely6-Aug-07 2:33 
GeneralRe: HDD failure Pin
Johpoke6-Aug-07 7:26
Johpoke6-Aug-07 7:26 
GeneralRe: HDD failure Pin
Dan Neely6-Aug-07 8:04
Dan Neely6-Aug-07 8:04 
GeneralRe: HDD failure Pin
Johpoke6-Aug-07 8:11
Johpoke6-Aug-07 8:11 
GeneralRe: HDD failure Pin
matjame6-Aug-07 22:49
matjame6-Aug-07 22:49 
GeneralRe: HDD failure Pin
matjame6-Aug-07 22:46
matjame6-Aug-07 22:46 
GeneralRe: HDD failure Pin
Johpoke7-Aug-07 1:49
Johpoke7-Aug-07 1:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.