Description:
PrtSet sets printer device information.
#define INCL_SPL #define INCL_SPLBIDI #include <os2.h> PSZ pszComputerName; /* Destination computer name or NULL for local printer. */ PSZ pszDeviceName; /* Port name on pszComputerName. */ ULONG ulType; /* Type of set and options. */ ULONG ulCommand; /* Generic command code. */ PVOID pInData; /* Contains either a command sequence to pass to, or information required by, the printer. */ ULONG cbInData; /* Length of pInData, in bytes. */ ULONG rc; /* Return codes. */ rc = PrtSet(pszComputerName, pszDeviceName, ulType, ulCommand, pInData, cbInData);