win32print.DeviceCapabilities
DeviceCapabilities(Device, Port, Capability, DEVMODE)
Queries a printer for its capabilities
Parameters
| Capability | Returned value |
| DC_MINEXTENT | Dictionary containing minimum paper width and height |
| DC_MAXEXTENT | Dictionary containing maximum paper width and height |
| DC_ENUMRESOLUTIONS | Sequence of dictionaries containing x and y resolutions in DPI |
| DC_PAPERS | Returns a sequence of ints, DMPAPER_* constants |
| DC_BINS | Returns a sequence of ints, DMBIN_* constants |
| DC_NUP | Sequence of ints containing supported logical page per physical page settings |
| DC_MEDIATYPES | Sequence of ints, DMMEDIA_* constants |
| DC_PAPERNAMES | Sequence of strings |
| DC_MEDIATYPENAMES | Sequence of strings |
| DC_MEDIAREADY | Sequence of strings |
| DC_FILEDEPENDENCIES | Sequence of strings |
| DC_PERSONALITY | Sequence of strings |
| DC_BINNAMES | Sequence of strings |
| DC_PAPERSIZE | Sequence of dicts containing paper sizes, in 1/10 millimeter units |
| All others | Output is an int |