If you want to prevent the start of an app you’re in for some
coding. While hooking ZwCreateProcess is fairly straightforward
(see sysinternals regmon for system call hooking),
the problem remains that from this hook you have to find out
the name of the app that is being started. So i guess you’ll
have to notify a user mode app that searches the process list
for the handle and tells your driver whether to reject the
process creation or not.
Holger Thiele
D.A.V.I.D. GmbH
mailto:xxxxx@david-gmbh.de
-----Urspr?ngliche Nachricht-----
Von: ?rd?gh L?szl? [mailto:xxxxx@digital.co.hu]
Gesendet: Freitag, 30. November 2001 16:13
An: NT Developers Interest List
Betreff: [ntdev] RE: application start detectionThx for your answer Robert!
This is a very straightforward approach.
Is it possible to get some form of notification before
the OS launch the process? What if I want to prevent
the start of application? If I use the process list monitoring
method and I decide to not let to run the process I have to
kill it. I think this could be dangerous to kill a starting
(for example) database application.
?rd?gh L?szl?
mailto:xxxxx@digital.co.hu> -----Original Message-----
> From: Fernando, Robert [mailto:xxxxx@anitetelecoms.com]
> Sent: Friday, November 30, 2001 3:43 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: application start detection
>
>
> Hi ?rd?gh
> Have a process which monitors the process list, and detects
> when your app appears on it.
>
> Download the kill process code which I have on my website,
> for example of how to walk the process list on win 95 / nt
>
http://www.rowanclose.com/utils/killps.html
http:
>
>Have fun and enjoyable weekend
>
>Take care
>
>
>Robert Fernando
>Anite Telecoms Ltd
>110 Fleet Road
>Fleet
>Hampshire GU51 4BL
>United Kingdom
>Tel: +44 (0) 1252 775200
>Fax: +44 (0) 1252 775 321
>Email: xxxxx@anitetelecoms.com
>
>Anite Telecoms Limited Registered in England No. 1721900 Registered
>Office: 100 Longwater Avenue, GreenPark, Reading, Berkshire RG2 6GP,
>United Kingdom
>
>
>
>-----Original Message-----
>From: ?rd?gh L?szl? [mailto:xxxxx@digital.co.hu]
>Sent: 30 November 2001 13:18
>To: NT Developers Interest List
>Subject: [ntdev] application start detection
>
>
>How can I detect the start of an application from
>another app? (Like some software metering program does.)
>
>-----------------------------------------------------------------
>?rd?gh L?szl?
> mailto:xxxxx mailto:xxxxx@digital.co.hu
>------------------------------------------------------------------
>
>
>—
>You are currently subscribed to ntdev as:
>xxxxx@anitetelecoms.com To unsubscribe send a blank email to
>leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@digital.co.hu To
>unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>—
>You are currently subscribed to ntdev as: xxxxx@david-gmbh.de
>To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx></http:>