Jump to content

wpQueryJobType

From EDM2

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

This instance method returns the data type of the given job.

Syntax

_wpQueryJobType(somSelf, pBuf, pcbBuf)

Parameters

somSelf (WPJob *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPJob.
pBuf (PSZ) - output
Buffer in which the data type of the spooled job is returned.
A return value of **NULL** indicates that $pcbBuf$ is too small to hold the datatype string.
Example data types are 'PM_Q_STD' or 'PM_Q_RAW'.
pcbBuf (PULONG) - in/out
Pointer to the length, in bytes, of the $pBuf$ buffer.
If either $pBuf$ is **NULL** or this call fails, the length of the required buffer plus one is returned in this parameter.

Returns

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

How to Override

This method is generally not overridden.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPJob *somSelf; /* Pointer to the object on which the method is being invoked. */
PSZ pBuf; /* Buffer in which the data type of the spooled job is returned. */
PULONG pcbBuf; /* Pointer to the length, in bytes, of the pBuf buffer. */
BOOL rc; /* Success indicator. */

rc = _wpQueryJobType(somSelf, pBuf, pcbBuf);

Related Methods