Greetings -
I want to kick off a user process from my kernel driver; what's the best way
to do this ? Can I simply use createprocess ?

Thanks,

BF

Re: create a user process from device driver by Maxim

Maxim
Wed Jan 12 02:36:17 CST 2005

You cannot. Run a user process from the Explorer's Run key and make it
communicating with a driver.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"swheeler" <swheeler@intrastart.com> wrote in message
news:OqWOOeF%23EHA.2700@TK2MSFTNGP14.phx.gbl...
> Greetings -
> I want to kick off a user process from my kernel driver; what's the best way
> to do this ? Can I simply use createprocess ?
>
> Thanks,
>
> BF
>
>



RE: create a user process from device driver by pavel_a

pavel_a
Thu Jan 13 08:43:06 CST 2005

"swheeler" wrote:
> Greetings -
> I want to kick off a user process from my kernel driver; what's the best way
> to do this ? Can I simply use createprocess ?

Make a usermode service and add it to dependencies of your driver's service.
When your driver starts, the usermode service will start as well.

--PA

Re: create a user process from device driver by Maxim

Maxim
Thu Jan 13 13:25:19 CST 2005

Usually even a service is overkill.

In most such situations, the only goal of user process is to spit some
popup under some conditions. For this, a tiny "notify.exe" app started by
Shell's Run key is fine.

BTW - the network adapter status tray icon works in a very similar way
(though with SP2 they moved to use WZC).

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
news:CFEF8F96-7C0F-4BE0-9C78-48F135D1F996@microsoft.com...
> "swheeler" wrote:
> > Greetings -
> > I want to kick off a user process from my kernel driver; what's the best
way
> > to do this ? Can I simply use createprocess ?
>
> Make a usermode service and add it to dependencies of your driver's service.
> When your driver starts, the usermode service will start as well.
>
> --PA



Re: create a user process from device driver by BigFish

BigFish
Fri Jan 14 09:23:19 CST 2005

This is exactly my goal - and if the user kills the user proc I want to be
able to restart it - if the user notification appears the user must take
some action, if they try to kill the notification, they should be presented
with the notification again until they enter some enabling info (i.e. a
password)
Speaking of the adapter tray status, do you know how it gets notified of
connect / disconnect state ?? I have been trying to figure that out for some
time...
Thanks for the good advice.
SWheeler


"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:OlbFGWa%23EHA.3368@TK2MSFTNGP10.phx.gbl...
> Usually even a service is overkill.
>
> In most such situations, the only goal of user process is to spit some
> popup under some conditions. For this, a tiny "notify.exe" app started by
> Shell's Run key is fine.
>
> BTW - the network adapter status tray icon works in a very similar way
> (though with SP2 they moved to use WZC).
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
> news:CFEF8F96-7C0F-4BE0-9C78-48F135D1F996@microsoft.com...
> > "swheeler" wrote:
> > > Greetings -
> > > I want to kick off a user process from my kernel driver; what's the
best
> way
> > > to do this ? Can I simply use createprocess ?
> >
> > Make a usermode service and add it to dependencies of your driver's
service.
> > When your driver starts, the usermode service will start as well.
> >
> > --PA
>
>



Re: create a user process from device driver by Peter

Peter
Fri Jan 14 09:47:48 CST 2005

i think the adapter status is communicated through WMI, but that's sort of
an educated guess.

One typical way to have an unkillable process you have the process spawn a
copy of itself. When the user kills the child through the UI they just kill
the child process - the parent can detect this and spawn a new copy of the
child. Of course when there's a bug in the child this is really really
really annoying since the user is just spammed with error reporting popups.

-p

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"BigFish" <BigFish@newsgroup.nospam> wrote in message
news:e%23nc8zk%23EHA.1400@TK2MSFTNGP11.phx.gbl...
> This is exactly my goal - and if the user kills the user proc I want to be
> able to restart it - if the user notification appears the user must take
> some action, if they try to kill the notification, they should be
> presented
> with the notification again until they enter some enabling info (i.e. a
> password)
> Speaking of the adapter tray status, do you know how it gets notified of
> connect / disconnect state ?? I have been trying to figure that out for
> some
> time...
> Thanks for the good advice.
> SWheeler
>
>
> "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> news:OlbFGWa%23EHA.3368@TK2MSFTNGP10.phx.gbl...
>> Usually even a service is overkill.
>>
>> In most such situations, the only goal of user process is to spit
>> some
>> popup under some conditions. For this, a tiny "notify.exe" app started by
>> Shell's Run key is fine.
>>
>> BTW - the network adapter status tray icon works in a very similar
>> way
>> (though with SP2 they moved to use WZC).
>>
>> --
>> Maxim Shatskih, Windows DDK MVP
>> StorageCraft Corporation
>> maxim@storagecraft.com
>> http://www.storagecraft.com
>>
>> "Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
>> news:CFEF8F96-7C0F-4BE0-9C78-48F135D1F996@microsoft.com...
>> > "swheeler" wrote:
>> > > Greetings -
>> > > I want to kick off a user process from my kernel driver; what's the
> best
>> way
>> > > to do this ? Can I simply use createprocess ?
>> >
>> > Make a usermode service and add it to dependencies of your driver's
> service.
>> > When your driver starts, the usermode service will start as well.
>> >
>> > --PA
>>
>>
>
>



Re: create a user process from device driver by Maxim

Maxim
Fri Jan 14 10:51:05 CST 2005

> some action, if they try to kill the notification, they should be presented
> with the notification again until they enter some enabling info (i.e. a

People will hate your product and will avoid it. People hate popups.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com



I know: Re: create a user process from device driver by BigFish

BigFish
Fri Jan 14 15:36:03 CST 2005

Yes they do; but this is not a typical popup;.. it is not adware but rather
a popup / dialog that warns them when they are about to do something
foolish, or something that they would later regret on their corp / work pc.
the pop should only appear in very rare instances - kind of like a virus
checker but not a virus checker. BTW, I hate adware and would not code it
nor create it.

"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:OHaxikl%23EHA.3616@TK2MSFTNGP11.phx.gbl...
> > some action, if they try to kill the notification, they should be
presented
> > with the notification again until they enter some enabling info (i.e. a
>
> People will hate your product and will avoid it. People hate popups.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
>



Re: I know: Re: create a user process from device driver by Don

Don
Fri Jan 14 15:46:58 CST 2005

What does your software do if the user doesn't have a desktop? Be very
careful here since XP SP2 and 2003 both can be run without a desktop. Do
this wrong, and you will be truly dispised and hated.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

"BigFish" <BigFish@newsgroup.nospam> wrote in message
news:eevcOEo%23EHA.704@tk2msftngp13.phx.gbl...
> Yes they do; but this is not a typical popup;.. it is not adware but
rather
> a popup / dialog that warns them when they are about to do something
> foolish, or something that they would later regret on their corp / work
pc.
> the pop should only appear in very rare instances - kind of like a virus
> checker but not a virus checker. BTW, I hate adware and would not code it
> nor create it.
>
> "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> news:OHaxikl%23EHA.3616@TK2MSFTNGP11.phx.gbl...
> > > some action, if they try to kill the notification, they should be
> presented
> > > with the notification again until they enter some enabling info (i.e.
a
> >
> > People will hate your product and will avoid it. People hate popups.
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> > http://www.storagecraft.com
> >
> >
>
>