Jump to content

wpQueryQueueOptions

From EDM2
Revision as of 17:19, 24 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpQueryQueueOptions}} This method is specific to version 3, or higher, of the OS/2 operating system. This instance method returns the printer object's queue options. ==Syntax== _wpQueryQueueOptions(somSelf) ==Parameters== ;''somSelf'' (WPPrinter *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPPrinter. ==Returns== ;''ulOptions'' (ULONG) - returns :Flag indicating queue option settings....")
(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 printer object's queue options.

Syntax

_wpQueryQueueOptions(somSelf)

Parameters

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

Returns

ulOptions (ULONG) - returns
Flag indicating queue option settings.
The following flags can be ORed together:
  • **PO_PRINTERSPECIFIC**: If set, the printer object spools print jobs in **PM_Q_RAW** format. If cleared, the printer object spools print jobs in **PM_Q_STD** format.
  • **PO_PRINTWHILESPOOLING**: If set, printing is enabled while the job is spooling. If cleared, printing occurs only after the job is spooled.
  • **PO_APPDEFAULT**: If set, this printer object becomes the application's default printer object. If cleared, the application's default printer object is not changed.
  • **PO_DIALOGBEFOREPRINT**: If set, a Job Properties dialog is displayed when a job is submitted to this printer object. If cleared, the Job Properties dialog is not displayed.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time.

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. */
ULONG ulOptions; /* Flag indicating queue option settings. */

ulOptions = _wpQueryQueueOptions(somSelf);

Related Methods