After my driver is installed, it has discovered at DriverEntry time that the
registry has not been set up correctly, it returns STATUS_REGISTRY_CORRUPT
and the XP Home Sp2 system crashes.... bummer.

What should be returned from a driver if the driver cannot initialize and
wants to be taken out of the game?


--
Gak -
Finecats

Re: DriverEntry return question by Calvin

Calvin
Fri Mar 09 15:09:15 CST 2007

Gak,

It depends on what kind of driver. For instance, I'd expect system crashes
if pci.sys's failed in its driverentry. Also, you need to undo what you have
done in the driverentry to safely bail out. What if you just do NTSTATUS
DriverEntry(){ return STATUS_REGISTRY_CORRUPT };?

--
Calvin Guan (expiring DDK MVP)
Sr. Staff Engineer
NetXtreme NTX Miniport
Broadcom Corporation
Connecting Everything(r)

"usfinecats" <usfinecats@nospam.nospam> wrote in message
news:A5463080-4277-4979-B9AB-4A354977322B@microsoft.com...
> After my driver is installed, it has discovered at DriverEntry time that
> the
> registry has not been set up correctly, it returns
> STATUS_REGISTRY_CORRUPT
> and the XP Home Sp2 system crashes.... bummer.
>
> What should be returned from a driver if the driver cannot initialize and
> wants to be taken out of the game?
>
>
> --
> Gak -
> Finecats



Re: DriverEntry return question by Doron

Doron
Fri Mar 09 22:05:22 CST 2007

what is the start type of your driver? boot or system start or demand
start?

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"usfinecats" <usfinecats@nospam.nospam> wrote in message
news:A5463080-4277-4979-B9AB-4A354977322B@microsoft.com...
> After my driver is installed, it has discovered at DriverEntry time that
> the
> registry has not been set up correctly, it returns
> STATUS_REGISTRY_CORRUPT
> and the XP Home Sp2 system crashes.... bummer.
>
> What should be returned from a driver if the driver cannot initialize and
> wants to be taken out of the game?
>
>
> --
> Gak -
> Finecats



Re: DriverEntry return question by USfinecats

USfinecats
Sat Mar 10 14:36:05 CST 2007

OK, I'm a lot smarter know:

WINDOWS XP SP2.
I've got a file system filter driver. It turns out that my question is
about deployment, msiexec, difxapp.

As I mentioned before the registry is not right and I need to quit. So I
probably need to back out any resources that I've acquired . At this point
my driver is not open for business, so there are no DPC's, ... etc. But
there are calls to ExInitializeResourceLite that need to be undone, etc.


HOWEVER HERE IS THE REAL QUESTION:

My deployment app (.msi file) built from VS 2005 deployment app requests
that certain registry settings be made in
HKLM....\currentcontrolset\services\myservice.

And my inf file also requests that setting values in that key as well.

I've got 2 installers for 2 very similar projects. The INF files are
virtually identical.
However, the deployment app for the working program also creates a Windows
Service. And launches it as a Custom Action. Not so in the failing
installer.

What I am seeing is that DIFXAPP causes the driver to be executed while
msiexec is running. In the working case, the registry settings are being
setup before the driver is launched. In the failing case NOT SO.

So, my driver is looking for registry settings it WILL NOT FIND, and thusly
pukes.

WHAT CAN I DO TO CAUSE ALL THE REGISTRY SETTINGS TO BE COMPLETED BEFORE THE
DRIVER IS LAUNCHED??????



--
Gak -
Finecats


"Doron Holan [MS]" wrote:

> what is the start type of your driver? boot or system start or demand
> start?
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "usfinecats" <usfinecats@nospam.nospam> wrote in message
> news:A5463080-4277-4979-B9AB-4A354977322B@microsoft.com...
> > After my driver is installed, it has discovered at DriverEntry time that
> > the
> > registry has not been set up correctly, it returns
> > STATUS_REGISTRY_CORRUPT
> > and the XP Home Sp2 system crashes.... bummer.
> >
> > What should be returned from a driver if the driver cannot initialize and
> > wants to be taken out of the game?
> >
> >
> > --
> > Gak -
> > Finecats
>
>
>

Re: DriverEntry return question by Doron

Doron
Sat Mar 10 21:55:34 CST 2007

can't answer the DIFX question, but you should really put your driver
specific reg values in
HKLM....\currentcontrolset\services\myservice\Parameters and leave
HKLM....\currentcontrolset\services\myservice alone

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"USfinecats" <USfinecats@discussions.microsoft.com> wrote in message
news:2A21D4F6-FA30-41BB-B02F-D1BD537D942B@microsoft.com...
> OK, I'm a lot smarter know:
>
> WINDOWS XP SP2.
> I've got a file system filter driver. It turns out that my question is
> about deployment, msiexec, difxapp.
>
> As I mentioned before the registry is not right and I need to quit. So I
> probably need to back out any resources that I've acquired . At this
> point
> my driver is not open for business, so there are no DPC's, ... etc. But
> there are calls to ExInitializeResourceLite that need to be undone, etc.
>
>
> HOWEVER HERE IS THE REAL QUESTION:
>
> My deployment app (.msi file) built from VS 2005 deployment app requests
> that certain registry settings be made in
> HKLM....\currentcontrolset\services\myservice.
>
> And my inf file also requests that setting values in that key as well.
>
> I've got 2 installers for 2 very similar projects. The INF files are
> virtually identical.
> However, the deployment app for the working program also creates a Windows
> Service. And launches it as a Custom Action. Not so in the failing
> installer.
>
> What I am seeing is that DIFXAPP causes the driver to be executed while
> msiexec is running. In the working case, the registry settings are being
> setup before the driver is launched. In the failing case NOT SO.
>
> So, my driver is looking for registry settings it WILL NOT FIND, and
> thusly
> pukes.
>
> WHAT CAN I DO TO CAUSE ALL THE REGISTRY SETTINGS TO BE COMPLETED BEFORE
> THE
> DRIVER IS LAUNCHED??????
>
>
>
> --
> Gak -
> Finecats
>
>
> "Doron Holan [MS]" wrote:
>
>> what is the start type of your driver? boot or system start or demand
>> start?
>>
>> d
>>
>> --
>> Please do not send e-mail directly to this alias. this alias is for
>> newsgroup purposes only.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> "usfinecats" <usfinecats@nospam.nospam> wrote in message
>> news:A5463080-4277-4979-B9AB-4A354977322B@microsoft.com...
>> > After my driver is installed, it has discovered at DriverEntry time
>> > that
>> > the
>> > registry has not been set up correctly, it returns
>> > STATUS_REGISTRY_CORRUPT
>> > and the XP Home Sp2 system crashes.... bummer.
>> >
>> > What should be returned from a driver if the driver cannot initialize
>> > and
>> > wants to be taken out of the game?
>> >
>> >
>> > --
>> > Gak -
>> > Finecats
>>
>>
>>