PrintDlg Lib "COMDLG32.DLL" _
    Alias "PrintDlgA" (prtdlg As TPRINTDLG) As Integer

Public Enum EPrintDialog
    PD_ALLPAGES = &amp;H0
    PD_SELECTION = &amp;H1
    PD_PAGENUMS = &amp;H2
    PD_NOSELECTION = &amp;H4
    PD_NOPAGENUMS = &amp;H8
    PD_COLLATE = &amp;H10
    PD_PRINTTOFILE = &amp;H20
    PD_PRINTSETUP = &amp;H40
    PD_NOWARNING = &amp;H80
    PD_RETURNDC = &amp;H100
    PD_RETURNIC = &amp;H200
    PD_RETURNDEFAULT = &amp;H400
    PD_SHOWHELP = &amp;H800
    PD_ENABLEPRINTHOOK = &amp;H1000