Hello,
I met the same problem as Vasili did. However, when I use the full path
name in which the file stored, for example, “c:\temp\FILENAME”, to
replace “\\.\FILENAME”, it succeeded to open the file. Does it mean that
we have some mistakes to use “\\.\FILENAME” in CreateFile function?
Of course, we don’t want to use the actual full path. So, are there any
ways to solve this problem?
Thanks a lot!
Shunnian
On 10/20/00, “Vasili Goutas ” wrote:
> Vasili Goutas wrote:
>
> > Neela Syam Kolli wrote:
> >
> > > I think you should use “\\.\MyDevice.VXD” as the file name… try it…
> >
> > No, it doesn’t work. I get the errorcode 2
> > – The system cannot find the file specified. ERROR_FILE_NOT_FOUND
> >
>
> Is it possible that the device has to be an other than a Multifunction device
> which I declared in the INF file?
> What other device class should I use for my device which is a controller for a
> very special hardware?
>
> Vasili
>
> > >
> > > Syam.
> > >
> > > -----Original Message-----
> > > From: xxxxx@SensoLogic.de [mailto:xxxxx@SensoLogic.de]
> > > Sent: Thursday, October 19, 2000 7:30 AM
> > > To: NT Developers Interest List
> > > Subject: [ntdev] [Newbie] CreateFile( “\\.\\MyDevice”, … ) failed
> > >
> > > Every time I try to open my Device with
> > > CreateFile(" \\.\\DevName"…) I get INVALID_HANDLE_VALUE as
> > > result.
> > > I added DebugPrint to every function my driver includes, but none of
> > > them is called when I call CreateFile.
> > > I’m using Win98 so I can’t use the tool DEVVIEW which would give me
> > > informations about available devices.
> > > Does someone know a tool doing this on Win98?
> > >
> > > I Tried naming my device when registering it with IoCreateDevice, but
> > > the same (nothing) hapens when I try to open it.
> > >
> > > Hope someone will have an idea and can help me
> > >
> > > TIA
> > > Vasili
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@ami.com
> > > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@sensologic.de
> > > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
> >
> > –
> > --------------------------------------------------------------------------
> >
> > SensoLogic GmbH voice: +49 40 529567-40
> >
> > Dipl. Ing. technische Informatik
> > Vasili Goutas fax: +49 40 529567-99
> >
> > - Project Manager Software - internet: www.sensologic.de
> >
> > Hummelsbütteler Steindamm 78a
> > 22851 Norderstedt, Germany Software + Sensor Systems
> >
> > e-mail: xxxxx@sensologic.de
> > internet: http://www.sensologic.de/
> > --------------------------------------------------------------------------
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@sensologic.de
> > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
> –
> --------------------------------------------------------------------------
>
> SensoLogic GmbH voice: +49 40 529567-40
>
> Dipl. Ing. technische Informatik
> Vasili Goutas fax: +49 40 529567-99
>
> - Project Manager Software - internet: www.sensologic.de
>
> Hummelsbütteler Steindamm 78a
> 22851 Norderstedt, Germany Software + Sensor Systems
>
> e-mail: xxxxx@sensologic.de
> internet: http://www.sensologic.de/
> --------------------------------------------------------------------------