Question Locked

CreateFile problem

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an application trying to communicate with a driver using a device handle. The CreateFile keeps returning error2: the system cannot find the file sp0ecified even when i have confirmed that the device is under /Device/ . I'm calling CreateFile like this... CreateFile("\\\\.\\", GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);

Can anyone tell me what the mistake could be?
Thanks in advance!

1 reply

This discussion is closed to new replies.