Jump to content

wpQueryComputerName

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

This instance method is called to query the name of the computer on which the printer object exists.

Syntax

_wpQueryComputerName(somSelf, pszComputerName)

Parameters

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

Returns

rc (ULONG) - returns
Success indicator.
  • **0** An error occurred.
  • **1** Successful - ComputerName is local (**NULL**).
  • **2** Successful - ComputerName is on a network. See **pszComputerName** for values.

How to Override

This method is generally not overridden.

Usage

This method is not covered in the provided text.

Remarks

This method is not covered in the provided text.

Example Code

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

Related Methods