Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8551267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:09:35+00:00 2026-06-11T14:09:35+00:00

I need to get notification in a KMDF driver when processes go down. I

  • 0

I need to get notification in a KMDF driver when processes go down. I do not want to use PsSetCreateProcessNotifyRoutine because that gives me notification for every process that is created or destroyed. I would like to know/get notification only when certain process ID’s which i am interested in are destroyed/exit/deleted. (I don’t care about process creations).

One way I thought of doing this would be to share an application created event with the driver. I will create a worker thread in the driver and make it wait on the user created event, and when the application terminates, the wait will abort. Is this a good way to know when the process is terminated/closed or are there more standard ways of doing this? I have read on some forums that sharing events is not a good idea and that i should use overlapped ioctls, but that wont work here obviously.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:09:36+00:00Added an answer on June 11, 2026 at 2:09 pm

    Solved: this is what I did:(My driver is a top level monolithic driver)

    1. Used ZwOpenProcess with process ID to get a handle to the process.

    2. Used ObReferenceObjectByHandle with the process handle to get a dispatcher object.

    3. Created a System thread using PsCreateSystemThread and passed in the dispatched object.

    4. Made the system thread created in the above step to wait on the dispatched object using KeWaitForSingleObject.

    5. Terminated the process programmatically or caused an exception and simply closed it using the X gui button. All of them woke the system thread created.

    This essentially gives me notification when processes of interest terminate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to access a inner object from a notification. I need to get
Need to get an div with overflow:hidden; not to wrap its children. I need
I need to develop a application where i need to get information or notification
I often get a notification to my Vim that my file has been changed
I need to get the dimensions of the display rectangle that the application can
I need to get a notification when ComputedHorizontalScrollBarVisibility changes. Sadly, there is no Event
I am using a JTable. I need to get a notification whenever a cell
I need get the id of an images which is place inside a datatemplate..
Just need get some vals located in application.ini(main ini) in the Controller plugin I
I need get all items these have no categories int? categoryId = null; var

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.