Jump to content

wpQueryPrinterName

From EDM2
Revision as of 17:26, 24 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpQueryPrinterName}} This instance method is called to query the name of the printer. ==Syntax== _wpQueryPrinterName(somSelf, pszPrinterName) ==Parameters== ;''somSelf'' (WPPrinter *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPPrinter. ;''pszPrinterName'' (PSZ) - output :Returned printer queue name of the object queried. ==Returns== ;''rc'' (BOOL) - returns :Success indicator. :...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This instance method is called to query the name of the printer.

Syntax

_wpQueryPrinterName(somSelf, pszPrinterName)

Parameters

somSelf (WPPrinter *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPrinter.
pszPrinterName (PSZ) - output
Returned printer queue name of the object queried.

Returns

rc (BOOL) - returns
Success indicator.
  • TRUE Successful completion.
  • FALSE Error occurred.

How to Override

This method is generally not overridden.

Usage

This method is not covered in the provided text.

Remarks

If this is a printer object, the printer queue name is defined on the computer returned by wpQueryComputerName. Use wpQueryLocalAlias to get the local printer queue name for network printer objects.

Example Code

#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);

Related Methods