Reputation: 10944
How would one use SendMessage() or PostMessage() function to close an application, given that the appropriate window handle is retrieved? Thanks in advance.
Upvotes: 1
Views: 131
Reputation: 3306
Call the PostQuitMessage function which will post a WM_QUIT message for you.
Upvotes: 1