The function activates the event handlers for process events. When not activating process event handling process events will not passed to the application.