When the message handler is called, it gets that handler and uses it, for example, to deposit error information in the application's context by calling a specific handler's internal procedure.
For more information, see the Accessing message handler information and the Creating a message handler process.