Jump to content
Sign in to follow this  

How to send WM_CLOSE when process PID is known?

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?

Share this post

Link to post
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
Sign in to follow this