Using "Message Box Default Reply" to Intercept Messages

 Scenarios involving a Headless system or Custom shell often require system generated "message boxes" to be hidden from the end user. At the same time, the developer needs a way to track the generated messages. The "Message Box Default Reply" component has been added to XPe FP2007 with such a goal in mind. The component provides the functionality to intercept "message boxes" and automatically choose the default button. The component can also log the message information to the Event Log. The information can then be accessed from the Event Log.

The ConfigUI for the component consists of three inputs

 

1. Disable MessageBox Popup: Checking this disables the display of popup generated by the MessageBox function. This is checked by default.
2. Severity log level: This specifies the minimum severity level of the message box to be logged. Log severity can range from logging all messages to just the error messages.
3. Log message information to event log: Checking this enables the messages to be logged to the Event Log.

Notes:
1. Not all messages are produced through the MessageBox function, this component might not operate on all windows.
2. Including this component enables the default reply to be chosen for all message boxes automatically. This can be detrimentalto scenarios where a message box input is required.

- Shiv