Jump to content

wpQueryPrintObject

From EDM2

This method is specific to Version 3, or higher, of the OS/2 operating system.

This instance method returns a pointer to the printer object that the current job is in.

Syntax

_wpQueryPrintObject(somSelf)

Parameters

somSelf (WPJob *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPJob.

Returns

Object (WPObject *) - returns
Pointer to the printer object.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPJob *somSelf; /* Pointer to the object on which the method is being invoked. */
WPObject *Object; /* Pointer to the printer object. */

Object = _wpQueryPrintObject(somSelf);