This instance method is called to query the name of the computer on which the printer object exists.
#define INCL_WINWORKPLACE #include <os2.h> WPPrinter *somSelf; /* Pointer to the object on which the method is being invoked. */ PSZ pszComputerName; /* Returned computer name of the object queried. */ ULONG rc; /* Success indicator. */ rc = _wpQueryComputerName(somSelf, pszComputerName);