Weird CreateFile error

I have a 2k PNP multifunction driver
that uses IoCreateDevice + IoCreateSymbolicLink.
The \Device and \DosDevices names are
registered correctly and visible in several utils.
The strings are correct and the rest of the
parameters.
GetLastError returns FILE_NOT_FOUND error,
I traced it to NTCreateFile and the return value
is
STATUS_INVALID_DEVICE_REQUEST ((NTSTATUS)0xC0000010L)

Can anyone drop some light on this ?

Are you sure you are using the right name? Please refer to CreateFile doc.
to make sure you are using right reparsing prefix “\\.\xxx”

Another thing, if it is 2k PnP, why are you still using
IoCreateSymbolicLink? Your driver must be a WDM driver, right? Use
IoRegisterDeviceInterface and related functions instead in your driver and
in user mode use SetupDiXXX.

Habits really really die hard. No wonder I still see DOS application running
in stores.

Bi

-----Original Message-----
From: Tomer Goldberg [mailto:xxxxx@royatech.com]
Sent: Tuesday, September 10, 2002 10:47 AM
To: NT Developers Interest List
Subject: [ntdev] Weird CreateFile error

I have a 2k PNP multifunction driver
that uses IoCreateDevice + IoCreateSymbolicLink.
The \Device and \DosDevices names are
registered correctly and visible in several utils.
The strings are correct and the rest of the
parameters.
GetLastError returns FILE_NOT_FOUND error,
I traced it to NTCreateFile and the return value
is
STATUS_INVALID_DEVICE_REQUEST ((NTSTATUS)0xC0000010L)

Can anyone drop some light on this ?


You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%

does your dispatch routine for IRP_MJ_CREATE_DEVICE ever get called?

-p

-----Original Message-----
From: Tomer Goldberg [mailto:xxxxx@royatech.com]
Sent: Tuesday, September 10, 2002 10:47 AM
To: NT Developers Interest List
Subject: [ntdev] Weird CreateFile error

I have a 2k PNP multifunction driver
that uses IoCreateDevice + IoCreateSymbolicLink.
The \Device and \DosDevices names are
registered correctly and visible in several utils.
The strings are correct and the rest of the
parameters.
GetLastError returns FILE_NOT_FOUND error,
I traced it to NTCreateFile and the return value
is
STATUS_INVALID_DEVICE_REQUEST ((NTSTATUS)0xC0000010L)

Can anyone drop some light on this ?


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%