And that will stop the process of the application as well as destroy the window(s)?

And, using that PostMessage function in the dialog procedure, that means I'm going to have to get the handle to the main window somehow..?