Group: Common Dialog Box - Library: comdlg32
The CommDlgExtendedError function returns a common dialog box error code. This code indicates the most recent error to occur during the execution of one of the common dialog box functions.
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Creating the Open dialog box to specify the drive, directory, and name of a file to open
DWORD CommDlgExtendedError(VOID);
DECLARE INTEGER CommDlgExtendedError IN comdlg32
This function has no parameters.
If the most recent call to a common dialog box function succeeded, the return value is undefined.
If the common dialog box function returned FALSE because the user closed or canceled the dialog box, the return value is zero. Otherwise, the return value is a nonzero error code.