This instance method is called to query 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; /* Returned printer queue name of the object queried. */ BOOL rc; /* Success indicator. */ rc = _wpQueryPrinterName(somSelf, pszPrinterName);