wpSetQueueOptions
Appearance
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method sets the printer object's queue options.
Syntax
_wpSetQueueOptions(somSelf, ulOptions)
Parameters
- somSelf (WPPrinter *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPPrinter.
- ulOptions (ULONG) - input
- 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.
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.
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. */ BOOL rc; /* Success indicator. */ rc = _wpSetQueueOptions(somSelf, ulOptions);