
    PD_ENABLESETUPHOOK = &amp;H2000
    PD_ENABLEPRINTTEMPLATE = &amp;H4000
    PD_ENABLESETUPTEMPLATE = &amp;H8000
    PD_ENABLEPRINTTEMPLATEHANDLE = &amp;H10000
    PD_ENABLESETUPTEMPLATEHANDLE = &amp;H20000
    PD_USEDEVMODECOPIES = &amp;H40000
    PD_USEDEVMODECOPIESANDCOLLATE = &amp;H40000
    PD_DISABLEPRINTTOFILE = &amp;H80000
    PD_HIDEPRINTTOFILE = &amp;H100000
    PD_NONETWORKBUTTON = &amp;H200000
End Enum

Private Type DEVNAMES
    wDriverOffset As Integer
    wDeviceOffset As Integer
    wOutp