views:

90

answers:

1

I have a driver I've written, and I created a symbolic name to it. The symbolic name is ...

L"\\DosDevices\\somename"

... and when I try to access the device object using CreateFile from usermode, I always get error code 3 (Path not found).

I tried using CreateFile with the following paths ...

L"\\\\.\\somename"

L"\\Device\\somename"

... and it doesnt work: I always get error code 3

Does someone know why?

+1  A: 

Use WinObj and see whether the symbolic has been created successfully -- the link should show up under GLOBAL??. If not, your driver is faulty.

Btw. \\.\somename is correct.

Johannes Passing