Jump to content

wpJobAdded

From EDM2

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

This instance method notifies the printer object that a job has been added to the print queue.

Syntax

_wpJobAdded(somSelf, ulJobId)

Parameters

somSelf (WPPrinter *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPrinter.
ulJobId (ULONG) - input
ID of the job added to the print queue.

Returns

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

How to Override

This method can be overridden, but the parent must be called for proper functioning of the printer object.

Usage

This method can be called at any time.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPPrinter *somSelf; /* Pointer to the object on which the method is being invoked. */
ULONG ulJobId; /* ID of the job added to the print queue. */
BOOL rc; /* Success indicator. */

rc = _wpJobAdded(somSelf, ulJobId);

Related Methods