This instance method is called to set the name of the printer.
#define INCL_WINWORKPLACE #include <os2.h> WPPrinter *somSelf; /* Pointer to the object on which the method is being invoked. */ PSZ pszPrinterName; /* Printer name. */ BOOL rc; /* Success indicator. */ rc = _wpSetPrinterName(somSelf, pszPrinterName);