Jump to content

wpQueryJobFile

From EDM2
Revision as of 03:22, 25 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpQueryJobFile}} This method is specific to version 3, or higher, of the OS/2 operating system. This instance method returns the spool file name for the local print jobs. ==Syntax== _wpQueryJobFile(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 complete path to the spool file...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

This instance method returns the spool file name for the local print jobs.

Syntax

_wpQueryJobFile(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 complete path to the spool file is returned.
A return value of **NULL** indicates that $pcbBuf$ is too small to hold the network ID.
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.

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. */
PSZ pBuf; /* Buffer in which the complete path to the spool file is returned. */
PULONG pcbBuf; /* Pointer to the length, in bytes, of the pBuf buffer. */
BOOL rc; /* Success indicator. */

rc = _wpQueryJobFile(somSelf, pBuf, pcbBuf);

Related Methods