The following common dialog error constants can be used anywhere in your code in place of actual values:
| Value | Description |
|---|---|
| &H7FF0 | Couldn't allocate memory for FileName or Filter property |
| &H7FF3 | Cancel was selected |
| &H8000 | The function failed to load the dialog box |
| &H7FF9 | The function failed to load a specified resource |
| &H7FEF | Call to Windows Help failed |
| &H7FFD | The function failed during initialization |
| &H7FF8 | The function failed to load a specified string |
| &H7FF7 | The function failed to lock a specified resource |
| &H7FF6 | The function was unable to allocate memory for internal data structures |
| &H0009 | The common dialog box function was unable to read from registry. |