System message listener

Good day mates,
l need help with which API function or library to use in other to trap a specific message from any process running.
Eg. When a user clicks print from firefox browser or MS-Word, my application would have to show password dialog box (modal) before returning to print dialog for the user to continue.
Thanks.
Topic archived. No new replies allowed.