RES: Can a driver thats compiled on windows XP Professional be inserted on windows 2k3

This should works quite good.
What name are you using to create a symbolic link for this device? Are
you using the same name on CreateFile call, or did you just use
\.\TestDriver due to you first parameter at insdrv.exe?
You can check the existence of your Driver/Device/SymbolicLink using
WinObj tool.

s,

Fernando Roberto da Silva
DriverEntry Kernel Development
http://www.driverentry.com.br

-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] Em nome de Vinay Kalkoti
Enviada em: quarta-feira, 4 de julho de 2007 08:56
Para: Windows System Software Devs Interest List
Assunto: [ntdev] Can a driver thats compiled on windows XP Professional
be inserted on windows 2k3

Hi,

I have written a small filter driver and have compiled it on windows
XP professional.

Can I insert this driver on windows 2k3 ?

I tried inserting it on windows 2k3, but, I got the following error -

instdrv.exe TestDriver MyDriver.sys
CreateService SUCCESS
failure: StartService (0x02)
Can’t get a handle to \.\TestDriver

I can insert it successfully on windows XP professional where I have
compiled it.

Any inputs ?

Thanks in Advance,
Vinay


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Hi,

I am using “TestDriver” as the symbolic link and its in \.\Device\TestDriver.
From Winobj, I didnt see any symbolic link in \.\Device.

Thanks,
Vinay

“Compiled on XP” means that the build system is running XP. The build system can be any platform supported by the WDK. The driver is built by the WDK build system for a specific target OS version: W2K, XP, W2K3, Vista. The driver will run on the target OS and all higher rev OS versions. A driver built for XP will run on W2K3.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-292627-
xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Thursday, July 05, 2007 5:04 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] RES: Can a driver thats compiled on windows XP
Professional be inserted on windows 2k3

Hi,

I am using “TestDriver” as the symbolic link and its in
\.\Device\TestDriver.
From Winobj, I didnt see any symbolic link in \.\Device.

Thanks,
Vinay


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Hi,

On windows XP ( where I compiled the driver) I am able to load the
driver. I see the symbolic name in winobj.

But, in win2k3, when I run instdrv, I get the error -

instdrv.exe TestFilterDrvSymLink MyDriver.sys
CreateService SUCCESS
failure: StartService (0x02)
Can’t get a handle to \.\TestFilterDrvSymLink

I dont see the symbolic name of the driver in winobj on win2k3.

Also, I see an event in the system events like this -

The TestFilterDrvSymLink service failed to start due to the following error:
The system cannot find the file specified.

Thanks,
Vinay

On 7/5/07, Mark Roddy wrote:
> “Compiled on XP” means that the build system is running XP. The build system can be any platform supported by the WDK. The driver is built by the WDK build system for a specific target OS version: W2K, XP, W2K3, Vista. The driver will run on the target OS and all higher rev OS versions. A driver built for XP will run on W2K3.
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com [mailto:bounce-292627-
> > xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
> > Sent: Thursday, July 05, 2007 5:04 AM
> > To: Windows System Software Devs Interest List
> > Subject: RE:[ntdev] RES: Can a driver thats compiled on windows XP
> > Professional be inserted on windows 2k3
> >
> > Hi,
> >
> > I am using “TestDriver” as the symbolic link and its in
> > \.\Device\TestDriver.
> > From Winobj, I didnt see any symbolic link in \.\Device.
> >
> > Thanks,
> > Vinay
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

Which kind of driver is the one you developed?
Did you install the driver with an INF file?

It looks like either the driver binary is not in the right place (i.e.
usually c:\windows\system32\drivers) or the registry keys containing the
path of your driver are screwed up/missing.

Have a nice day
GV

----- Original Message -----
From: “Vinay Kalkoti”
To: “Windows System Software Devs Interest List”
Sent: Thursday, July 05, 2007 5:46 AM
Subject: Re: [ntdev] RES: Can a driver thats compiled on windows XP
Professional be inserted on windows 2k3

> Hi,
>
> On windows XP ( where I compiled the driver) I am able to load the
> driver. I see the symbolic name in winobj.
>
> But, in win2k3, when I run instdrv, I get the error -
>
> instdrv.exe TestFilterDrvSymLink MyDriver.sys
> CreateService SUCCESS
> failure: StartService (0x02)
> Can’t get a handle to \.\TestFilterDrvSymLink
>
> I dont see the symbolic name of the driver in winobj on win2k3.
>
> Also, I see an event in the system events like this -
>
> The TestFilterDrvSymLink service failed to start due to the following
> error:
> The system cannot find the file specified.
>
> Thanks,
> Vinay
>
>
>
>
> On 7/5/07, Mark Roddy wrote:
>> “Compiled on XP” means that the build system is running XP. The build
>> system can be any platform supported by the WDK. The driver is built by
>> the WDK build system for a specific target OS version: W2K, XP, W2K3,
>> Vista. The driver will run on the target OS and all higher rev OS
>> versions. A driver built for XP will run on W2K3.
>>
>> > -----Original Message-----
>> > From: xxxxx@lists.osr.com [mailto:bounce-292627-
>> > xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
>> > Sent: Thursday, July 05, 2007 5:04 AM
>> > To: Windows System Software Devs Interest List
>> > Subject: RE:[ntdev] RES: Can a driver thats compiled on windows XP
>> > Professional be inserted on windows 2k3
>> >
>> > Hi,
>> >
>> > I am using “TestDriver” as the symbolic link and its in
>> > \.\Device\TestDriver.
>> > From Winobj, I didnt see any symbolic link in \.\Device.
>> >
>> > Thanks,
>> > Vinay
>> >
>> > —
>> > Questions? First check the Kernel Driver FAQ at
>> > http://www.osronline.com/article.cfm?id=256
>> >
>> > To unsubscribe, visit the List Server section of OSR Online at
>> > http://www.osronline.com/page.cfm?name=ListServer
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer