service loaded after driver

Hi,

? I created a dependency on my service to a driver so that opening a device handle always succeeds. On Vista 32, this entry is logged:

The productmgr service depends the following service: productdrv. This service might not be installed.

? It happens at startup. The productdrv is installed. What goes wrong?

Regards,
? Calin

On 09-Aug-2011 10:43, Calin Iaru wrote:

Hi,

I created a dependency on my service to a driver so that opening a
device handle always succeeds. On Vista 32, this entry is logged:

The productmgr service depends the following service: productdrv. This
service might not be installed.

It happens at startup. The productdrv is installed. What goes wrong?

Regards,
Calin

Dependency of kernel driver on usermode service worked in win2k or maybe
XP RTM - but since then such dependencies are ignored.
So nothing wrong, this is a feature…

–pa

Hi Pavel,

?can you point out a link that documents this feature as deprecated?
?The DependsOnService key is documented for Server2003 and downwards.
http://support.microsoft.com/kb/193888

Regards,
? Calin


From: Pavel A
To: Windows System Software Devs Interest List
Sent: Tuesday, August 9, 2011 11:12 AM
Subject: Re:[ntdev] service loaded after driver

On 09-Aug-2011 10:43, Calin Iaru wrote:
> Hi,
>
> I created a dependency on my service to a driver so that opening a
> device handle always succeeds. On Vista 32, this entry is logged:
>
> The productmgr service depends the following service: productdrv. This
> service might not be installed.
>
> It happens at startup. The productdrv is installed. What goes wrong?
>
> Regards,
> Calin

Dependency of kernel driver on usermode service worked in win2k or maybe
XP RTM - but since then such dependencies are ignored.
So nothing wrong, this is a feature…

–pa


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

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

On 09-Aug-2011 13:20, Calin Iaru wrote:

Hi Pavel,

can you point out a link that documents this feature as deprecated?
The DependsOnService key is documented for Server2003 and downwards.
http://support.microsoft.com/kb/193888

Regards,
Calin

Calin, no I cannot. But I remember exploiting this on win2k
and now it is no go - as you’ve seen.

Regards,
–pa


*From:* Pavel A
> To: Windows System Software Devs Interest List
> Sent: Tuesday, August 9, 2011 11:12 AM
> Subject: Re:[ntdev] service loaded after driver
>
> On 09-Aug-2011 10:43, Calin Iaru wrote:
> > Hi,
> >
> > I created a dependency on my service to a driver so that opening a
> > device handle always succeeds. On Vista 32, this entry is logged:
> >
> > The productmgr service depends the following service: productdrv. This
> > service might not be installed.
> >
> > It happens at startup. The productdrv is installed. What goes wrong?
> >
> > Regards,
> > Calin
>
> Dependency of kernel driver on usermode service worked in win2k or maybe
> XP RTM - but since then such dependencies are ignored.
> So nothing wrong, this is a feature…
>
> --pa
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>

Hi Pavel,

? thanks for your time. I use ChangeServiceConfig2 on the setup app to schedule a restart after 30 seconds.
http://msdn.microsoft.com/en-us/library/ms681988(v=VS.85).aspx

Regards,
? Calin


From: Pavel A
To: Windows System Software Devs Interest List
Sent: Tuesday, August 9, 2011 1:59 PM
Subject: Re:[ntdev] service loaded after driver

On 09-Aug-2011 13:20, Calin Iaru wrote:
> Hi Pavel,
>
> can you point out a link that documents this feature as deprecated?
> The DependsOnService key is documented for Server2003 and downwards.
> http://support.microsoft.com/kb/193888
>
> Regards,
> Calin

Calin, no I cannot. But I remember exploiting this on win2k
and now it is no go - as you’ve seen.

Regards,
–pa

> ------------------------------------------------------------------------
> From: Pavel A
> To: Windows System Software Devs Interest List
> Sent: Tuesday, August 9, 2011 11:12 AM
> Subject: Re:[ntdev] service loaded after driver
>
> On 09-Aug-2011 10:43, Calin Iaru wrote:
>? > Hi,
>? >
>? > I created a dependency on my service to a driver so that opening a
>? > device handle always succeeds. On Vista 32, this entry is logged:
>? >
>? > The productmgr service depends the following service: productdrv. This
>? > service might not be installed.
>? >
>? > It happens at startup. The productdrv is installed. What goes wrong?
>? >
>? > Regards,
>? > Calin
>
> Dependency of kernel driver on usermode service worked in win2k or maybe
> XP RTM - but since then such dependencies are ignored.
> So nothing wrong, this is a feature…
>
> --pa
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

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

I don’t recall this ever working from NT 3.51 onwards, but I might have
neglected to notice it working in w2k.

Mark Roddy

On Tue, Aug 9, 2011 at 7:59 AM, Pavel A wrote:

> On 09-Aug-2011 13:20, Calin Iaru wrote:
>
>> Hi Pavel,
>>
>> can you point out a link that documents this feature as deprecated?
>> The DependsOnService key is documented for Server2003 and downwards.
>> http://support.microsoft.com/ kb/193888http:
>>
>> Regards,
>> Calin
>>
>
>
> Calin, no I cannot. But I remember exploiting this on win2k
> and now it is no go - as you’ve seen.
>
> Regards,
> --pa
>
> ------------------------------
------------------------------**
>> ------------
>> From: Pavel A
>>
>> To: Windows System Software Devs Interest List
>> Sent: Tuesday, August 9, 2011 11:12 AM
>> Subject: Re:[ntdev] service loaded after driver
>>
>> On 09-Aug-2011 10:43, Calin Iaru wrote:
>> > Hi,
>> >
>> > I created a dependency on my service to a driver so that opening a
>> > device handle always succeeds. On Vista 32, this entry is logged:
>> >
>> > The productmgr service depends the following service: productdrv. This
>> > service might not be installed.
>> >
>> > It happens at startup. The productdrv is installed. What goes wrong?
>> >
>> > Regards,
>> > Calin
>>
>> Dependency of kernel driver on usermode service worked in win2k or maybe
>> XP RTM - but since then such dependencies are ignored.
>> So nothing wrong, this is a feature…
>>
>> --pa
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.**cfm?name=ListServerhttp:
>>
>>
>>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.**cfm?name=ListServerhttp:
></http:></http:></http:>

In Win7 a service can start on detection of certain device interface.
Another reason to upgrade :slight_smile:

http://msdn.microsoft.com/en-us/library/dd405512(v=VS.85).aspx

–pa

On 09-Aug-2011 20:10, Calin Iaru wrote:

Hi Pavel,

thanks for your time. I use ChangeServiceConfig2 on the setup app to
schedule a restart after 30 seconds.
http://msdn.microsoft.com/en-us/library/ms681988(v=VS.85).aspx

Regards,
Calin


*From:* Pavel A
> To: Windows System Software Devs Interest List
> Sent: Tuesday, August 9, 2011 1:59 PM
> Subject: Re:[ntdev] service loaded after driver
>
> On 09-Aug-2011 13:20, Calin Iaru wrote:
> > Hi Pavel,
> >
> > can you point out a link that documents this feature as deprecated?
> > The DependsOnService key is documented for Server2003 and downwards.
> > http://support.microsoft.com/kb/193888
> >
> > Regards,
> > Calin
>
>
> Calin, no I cannot. But I remember exploiting this on win2k
> and now it is no go - as you’ve seen.
>
> Regards,
> --pa
>
> > ------------------------------------------------------------------------
> > From: Pavel A >
> > To: Windows System Software Devs Interest List > mailto:xxxxx>
> > Sent: Tuesday, August 9, 2011 11:12 AM
> > Subject: Re:[ntdev] service loaded after driver
> >
> > On 09-Aug-2011 10:43, Calin Iaru wrote:
> > > Hi,
> > >
> > > I created a dependency on my service to a driver so that opening a
> > > device handle always succeeds. On Vista 32, this entry is logged:
> > >
> > > The productmgr service depends the following service: productdrv. This
> > > service might not be installed.
> > >
> > > It happens at startup. The productdrv is installed. What goes wrong?
> > >
> > > Regards,
> > > Calin
> >
> > Dependency of kernel driver on usermode service worked in win2k or maybe
> > XP RTM - but since then such dependencies are ignored.
> > So nothing wrong, this is a feature…
> >
> > --pa</mailto:xxxxx>

I didn’t know that! Thank you Pavel.

Amazing the things you learn when you read this list,

Peter
OSR