Jump to content

wpQueryComputerName

From EDM2

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