returns the following exit codes:
Exit CodeDescription0The user has pressed either OK or Close.1The user has either pressed Cancel, or used the window functions to close the dialog.-1An unexpected error has occurred.
