In my driver I am creating a Device object with a name and creating a
symbolic link to the object in \DosDevices. I am using CreateFile to
access my device object to send it some IOCTLs. I cannot get CreateFile
to succeed, I keep getting ERROR_FILE_NOT_FOUND.
What can go wrong to give me that error (I am quite certain I am
spelling the name of the symbolic link, and the link does exists - I
can see it with OBJVIEW).
It feels silly to have trouble with something as simple as this,
especially since it is something that I have done many times without
trouble.
TIA
If you have \DosDevices\MyName in the kernel, then use \.\MyName in the
user.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Cliff Russell”
To: “Windows System Software Devs Interest List”
Sent: Friday, November 14, 2003 1:10 AM
Subject: [ntdev] CreateFile fails with ERROR_FILE_NOT_FOUND
> In my driver I am creating a Device object with a name and creating a
> symbolic link to the object in \DosDevices. I am using CreateFile to
> access my device object to send it some IOCTLs. I cannot get CreateFile
> to succeed, I keep getting ERROR_FILE_NOT_FOUND.
>
> What can go wrong to give me that error (I am quite certain I am
> spelling the name of the symbolic link, and the link does exists - I
> can see it with OBJVIEW).
>
> It feels silly to have trouble with something as simple as this,
> especially since it is something that I have done many times without
> trouble.
>
> TIA
>
> - Cliff
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
Did that.
Thanks though.
On 13-Nov-03, at 2:45 PM, Maxim S. Shatskih wrote:
If you have \DosDevices\MyName in the kernel, then use \.\MyName
in the
user.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Cliff Russell”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, November 14, 2003 1:10 AM
> Subject: [ntdev] CreateFile fails with ERROR_FILE_NOT_FOUND
>
>
>> In my driver I am creating a Device object with a name and creating a
>> symbolic link to the object in \DosDevices. I am using CreateFile to
>> access my device object to send it some IOCTLs. I cannot get
>> CreateFile
>> to succeed, I keep getting ERROR_FILE_NOT_FOUND.
>>
>> What can go wrong to give me that error (I am quite certain I am
>> spelling the name of the symbolic link, and the link does exists - I
>> can see it with OBJVIEW).
>>
>> It feels silly to have trouble with something as simple as this,
>> especially since it is something that I have done many times without
>> trouble.
>>
>> TIA
>>
>> - Cliff
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@telus.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
How is anyone to know what you have done with no source code or anything?
Try showing the CreateFile() with all parameter preparation shown and then
the output from an object dump that shows where your device really exists.
“Cliff Russell” wrote in message
news:xxxxx@ntdev…
>
> Did that.
>
> Thanks though.
>
> On 13-Nov-03, at 2:45 PM, Maxim S. Shatskih wrote:
>
> > If you have \DosDevices\MyName in the kernel, then use \.\MyName
> > in the
> > user.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
> > ----- Original Message -----
> > From: “Cliff Russell”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, November 14, 2003 1:10 AM
> > Subject: [ntdev] CreateFile fails with ERROR_FILE_NOT_FOUND
> >
> >
> >> In my driver I am creating a Device object with a name and creating a
> >> symbolic link to the object in \DosDevices. I am using CreateFile to
> >> access my device object to send it some IOCTLs. I cannot get
> >> CreateFile
> >> to succeed, I keep getting ERROR_FILE_NOT_FOUND.
> >>
> >> What can go wrong to give me that error (I am quite certain I am
> >> spelling the name of the symbolic link, and the link does exists - I
> >> can see it with OBJVIEW).
> >>
> >> It feels silly to have trouble with something as simple as this,
> >> especially since it is something that I have done many times without
> >> trouble.
> >>
> >> TIA
> >>
> >> - Cliff
> >>
> >>
> >> —
> >> Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >>
> >> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> >> To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@telus.net
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>