
End Enum

' Common dialog errors

Private Declare Function CommDlgExtendedError Lib "COMDLG32" () As Long

Public Enum EDialogError
    CDERR_DIALOGFAILURE = &amp;HFFFF

    CDERR_GENERALCODES = &amp;H0
    CDERR_STRUCTSIZE = &amp;H1
    CDERR_INITIALIZATION = &amp;H2
    CDERR_NOTEMPLATE = &amp;H3
    CDERR_NOHINSTANCE = &amp;H4
    CDERR_LOADSTRFAILURE = &amp;H5
    CDERR_FINDRESFAILURE = &amp;H6
    CDERR_LOADRESFAILURE = &amp;H7
    CDERR_LOCKRESFAILURE = &amp;H8
    CDERR_MEMALLOCFAILURE = &amp;H9
   