win32gui.CreateDC

int = CreateDC(Driver, Device , InitData )

Creates a device context for a printer or display device

Parameters

Driver : string

Name of display or print provider, usually DISPLAY or WINSPOOL

Device : string

Name of specific device, eg printer name returned from GetDefaultPrinter

InitData : PyDEVMODE

A PyDEVMODE that specifies printing parameters, use None for printer defaults