If wtreqinfo is unable to display a message box due to a system error, the value returned as the errorlevel to the calling program or script is 256. Otherwise, the errorlevel when the box is closed and wtreqinfo returns is the ASCII value of the first letter of the selected button, except in the following two cases.
A button is selected either with the mouse or the ENTER key.
The complete list of errorlevels is shown below.
Pressing Alt+F4 to close the message box is equivalent to pressing ESC, returning 27 as the errorlevel, or 13 if the message box only has an OK button.
Page url: http://wtcmanual.wintextware.com/index.html?wtri_message_box_return_values.htm