USB Data
-
You don't do that directly. You have to communicate with one of the device sitting on the bus through its device driver, and you can't access the bus directly. Which device are you trying to communicate with ? The way to go is to get a handle to the driver through CreateFile (you simply the device symbolic name) and then you can call ReadFile and WriteFile or exchange specific control codes by calling DeviceIOControl. All of those things are specific to the device you try to communicate with, so you need to have some documentation.
Cédric Moonen Software developer
Charting control [v1.4] OpenGL game tutorial in C++ -
You don't do that directly. You have to communicate with one of the device sitting on the bus through its device driver, and you can't access the bus directly. Which device are you trying to communicate with ? The way to go is to get a handle to the driver through CreateFile (you simply the device symbolic name) and then you can call ReadFile and WriteFile or exchange specific control codes by calling DeviceIOControl. All of those things are specific to the device you try to communicate with, so you need to have some documentation.
Cédric Moonen Software developer
Charting control [v1.4] OpenGL game tutorial in C++ -
Thx's for reply can you give document or example code.If it is possible(document or code) then plz give me.. Thx's
No I can't because it is specific to the device you are trying to access. So, please answer my question: which device are you trying to communicate with ? Normally, you should have some documentation supplied with the device.
Cédric Moonen Software developer
Charting control [v1.4] OpenGL game tutorial in C++ -
No I can't because it is specific to the device you are trying to access. So, please answer my question: which device are you trying to communicate with ? Normally, you should have some documentation supplied with the device.
Cédric Moonen Software developer
Charting control [v1.4] OpenGL game tutorial in C++ok iwant to access all device but first i want to access PenDrive.So plz help me
-
ok iwant to access all device but first i want to access PenDrive.So plz help me
mirtu wrote:
ok iwant to access all device
:confused: Why do you want to do that ? What do you want to do with those devices if you don't know how to communicate with them ?
mirtu wrote:
but first i want to access PenDrive
You can simply access the files the standard way. The driver takes care of everything. The only thing a bit more tricky would be to know which driver letter is used by the device, but I don't know exactly how to do that. I guess you should check somewhere in the registry.
Cédric Moonen Software developer
Charting control [v1.4] OpenGL game tutorial in C++ -
mirtu wrote:
ok iwant to access all device
:confused: Why do you want to do that ? What do you want to do with those devices if you don't know how to communicate with them ?
mirtu wrote:
but first i want to access PenDrive
You can simply access the files the standard way. The driver takes care of everything. The only thing a bit more tricky would be to know which driver letter is used by the device, but I don't know exactly how to do that. I guess you should check somewhere in the registry.
Cédric Moonen Software developer
Charting control [v1.4] OpenGL game tutorial in C++ok Plz tell me what information you want to know from me. I got code from codeproject.com which is give information about USB Port Attached device.Link is this [code] http://www.codeproject.com/KB/system/HwDetect.aspx[^] [/code] So if it is possible then help me
-
ok Plz tell me what information you want to know from me. I got code from codeproject.com which is give information about USB Port Attached device.Link is this [code] http://www.codeproject.com/KB/system/HwDetect.aspx[^] [/code] So if it is possible then help me