Jump to content

How to send WM_CLOSE when process PID is known?


Panda
 Share

Recommended Posts

I want to gracefully close a particular instance of an application by posting a WM_CLOSE message.  This will give the application a chance to cleanly flush unsaved data to the file system.  There may be multiple instances of the application running with the same window title.  However, I know the PID for the instance I want to close.  Any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...