SYSTEM PROCESS MESSAGES

Hello all,
I have questions about the message boxes, which are shown by the system process.
How can I intercept the messages before their appearance on the desktop?
I mean, how can I get the handle of these messages (I think, that they are pop-ups)

Regards:
Mark