win32print.EnumPorts

(dict,...) = EnumPorts(Name, Level )

Lists printer port on a server

Parameters

Name : str/PyUnicode

Name of server, use None for local machine

Level : int

Level of information to return, 1 and 2 supported

Return Value

Returns a sequence of dicts representing PORT_INFO_* structures depending on level