Description:
This function queries installed control panel DLLs for support for the printer attached to the given port.
#define INCL_SPL #define INCL_SPLBIDI #include <os2.h> PSZ pszComputerName; /* Name of computer connected to the printer port. */ PSZ pszPortName; /* Name of printer port on pszComputerName used to determine if a control panel can be displayed. */ PSZ pszDeviceID; /* Device ID, if known, for the printer connected to pszPortName. */ ULONG flCapabilities; /* Compatibilities requested. */ PSZ pszListOfPanels; /* Receives comma-separated list of control panel names capable of displaying a control panel for the printer. */ ULONG cbBuf; /* Length of buffer, in bytes, pointed to by pszListOfPanels. */ PULONG pcbNeeded; /* Receives length, in bytes, of buffer needed to store entire list of control panels for the printer. */ ULONG rc; /* Return codes. */ rc = SplGetControlPanelList(pszComputerName, pszPortName, pszDeviceID, flCapabilities, pszListOfPanels, cbBuf, pcbNeeded);