CreateFile problem on windows2000

My driver is installed as a tdi driver and started as a service. To open
it, the application does CreateFile(name,…)
Where name is “\.<drivername>”. On XP systems this works fine, but on
some fresh windows 2K systems the call fails with error code 2.

The systems in question have their system32 directory in a drive other
than C:. Does this matter?

Any pointers would be appreciated.

CreateFile problem on windows2000Are you by any chance compiling your application using Borland Delphi or C++ Builder ?

Regards,

Daniel Terhell
Resplendence Software Projects Sp
xxxxx@resplendence.com
http://www.resplendence.com

“Charu Venkatraman” wrote in message news:xxxxx@ntdev…
My driver is installed as a tdi driver and started as a service. To open it, the application does CreateFile(name,.)
Where name is “\.<drivername>”. On XP systems this works fine, but on some fresh windows 2K systems the call fails with error code 2.

The systems in question have their system32 directory in a drive other than C:. Does this matter?

Any pointers would be appreciated.

CreateFile problem on windows2000Are you by any chance running under a Terminal Service session ?

/Daniel

“Charu Venkatraman” wrote in message news:xxxxx@ntdev…
My driver is installed as a tdi driver and started as a service. To open it, the application does CreateFile(name,.)
Where name is “\.<drivername>”. On XP systems this works fine, but on some fresh windows 2K systems the call fails with error code 2.

The systems in question have their system32 directory in a drive other than C:. Does this matter?

Any pointers would be appreciated.

CreateFile problem on windows2000Try “\Device<drivername>” in CreateFile and in IoCreateDevice.

The “Device” is case sensitive.
“device” or “DEVICE” do not work.
“Charu Venkatraman” wrote in message news:xxxxx@ntdev…
My driver is installed as a tdi driver and started as a service. To open it, the application does CreateFile(name,.)
Where name is “\.<drivername>”. On XP systems this works fine, but on some fresh windows 2K systems the call fails with error code 2.

The systems in question have their system32 directory in a drive other than C:. Does this matter?

Any pointers would be appreciated.

Daniel,

No, I am not compiling with Borland, or running under terminal service
session. I noticed that if I load my driver during boot time, it
succeeds, but if I load it dynamically it fails. It looks like some
other driver loading at boot time is not letting my driver load. I tried
running DeviceTree but it won’t run and reports “OBJINFO driver cannot
be loaded”. Is there a way to see what drivers are loaded before me and
isolate the problem?

Regards,

Charu.


CreateFile problem on windows2000Are you by any chance running under a =

Terminal Service session ?

/Daniel

CreateFile problem on windows2000Are you by any chance compiling your =

application using Borland Delphi or C++ Builder ?

Regards,

Daniel Terhell

Resplendence Software Projects Sp

xxxxx@resplendence.com

http://www.resplendence.com http:</http:>

“Charu Venkatraman” wrote in message =

news:xxxxx@ntdev…

My driver is installed as a tdi driver and started as a service. To =

open it, the application does CreateFile(name,.)=20

Where name is "\.<drivername> <file:> ". On
XP systems this works fine, but =

on some fresh windows 2K systems the call fails with error code 2.

The systems in question have their system32 directory in a drive other
=

than C:. Does this matter?=20

Any pointers would be appreciated.=20</file:>