Click here to Skip to main content
15,913,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Newbie question, problem compiling Pin
Maximilien14-Jul-09 9:30
Maximilien14-Jul-09 9:30 
AnswerRe: Newbie question, problem compiling Pin
Adassus14-Jul-09 11:41
Adassus14-Jul-09 11:41 
GeneralRe: Newbie question, problem compiling Pin
Randor 14-Jul-09 11:59
professional Randor 14-Jul-09 11:59 
GeneralRe: Newbie question, problem compiling Pin
Adassus14-Jul-09 15:44
Adassus14-Jul-09 15:44 
QuestionUSB interaction from user space. I need some light please! Pin
sinosoidal14-Jul-09 6:32
sinosoidal14-Jul-09 6:32 
AnswerRe: USB interaction from user space. I need some light please! Pin
Roger Stoltz14-Jul-09 6:59
Roger Stoltz14-Jul-09 6:59 
AnswerRe: USB interaction from user space. I need some light please! Pin
Randor 14-Jul-09 8:41
professional Randor 14-Jul-09 8:41 
GeneralRe: USB interaction from user space. I need some light please! Pin
sinosoidal15-Jul-09 0:49
sinosoidal15-Jul-09 0:49 
Hi,

Thanks for the replies. That was good news for me. I'm trying to explorer the direct connection to the USB device from C# using DeviceIOControl.

I found an example with code from an article here in codeproject.

The example, basicly interacts with an pci card, but i have seen another example of interaction, but this time with an usb device and they both start with CreateFile passing the device GUID.

However, i cant have a valid handle. I think i'm passing the right guid of the device, because i'm getting it from the driver it self.

hFileHandle = INVALID_HANDLE_VALUE;
                //open handle
                hFileHandle = CreateFile("{00873fdf-61a8-11d1-aa5e-00c04fb1728b}", 
                                         GENERIC_READ | 
                                         GENERIC_WRITE,
                                         0,
                                         (IntPtr)0,
                                         OPEN_EXISTING,
                                         0,
                                         NULL);

                if (hFileHandle == INVALID_HANDLE_VALUE)
                {
                    Console.WriteLine("Cannot open driver handle");
                    return;
                }


Any tips?

Thanks,

Nuno
GeneralRe: USB interaction from user space. I need some light please! Pin
Randor 15-Jul-09 8:08
professional Randor 15-Jul-09 8:08 
GeneralRe: USB interaction from user space. I need some light please! Pin
sinosoidal15-Jul-09 9:34
sinosoidal15-Jul-09 9:34 
QuestionProblem with the reading of the BMP file Pin
TeslaShock14-Jul-09 5:27
TeslaShock14-Jul-09 5:27 
AnswerRe: Problem with the reading of the BMP file Pin
Chris Losinger14-Jul-09 6:01
professionalChris Losinger14-Jul-09 6:01 
GeneralRe: Problem with the reading of the BMP file Pin
TeslaShock14-Jul-09 6:13
TeslaShock14-Jul-09 6:13 
AnswerRe: Problem with the reading of the BMP file Pin
Joe Woodbury14-Jul-09 6:38
professionalJoe Woodbury14-Jul-09 6:38 
GeneralRe: Problem with the reading of the BMP file Pin
TeslaShock16-Jul-09 5:13
TeslaShock16-Jul-09 5:13 
QuestionOnInitDialog() never be called Pin
transoft14-Jul-09 2:22
transoft14-Jul-09 2:22 
QuestionRe: OnInitDialog() never be called Pin
CPallini14-Jul-09 2:35
mveCPallini14-Jul-09 2:35 
AnswerRe: OnInitDialog() never be called Pin
transoft14-Jul-09 2:42
transoft14-Jul-09 2:42 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 2:48
Cedric Moonen14-Jul-09 2:48 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 6:05
transoft14-Jul-09 6:05 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 7:20
Cedric Moonen14-Jul-09 7:20 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 7:24
transoft14-Jul-09 7:24 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 7:28
Cedric Moonen14-Jul-09 7:28 
AnswerRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 2:44
Cedric Moonen14-Jul-09 2:44 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 5:57
transoft14-Jul-09 5:57 

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.