CreateFile problem - TechRepublic
Question
November 24, 2008 at 02:36 AM
raghuramos1987

CreateFile problem

by raghuramos1987 . Updated 17 years, 8 months ago

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!

This discussion is locked

All Comments