Starts the process of enumerating printers.
Note: This routine is supported for native COBOL only.
Syntax:
call "PC_PRINTER_ENUM_START" using by reference enum-handle
by value enum-flags
by reference number-of-printers-found
Parameters
-
enum-handle
- Call prototype (see Key): cblt-pointer
- Picture: pointer.
-
enum-flags
- Call prototype (see Key): cblt_os_flags
- Picture: pic x(4) comp-5.
-
number-of-printers-found
- Call prototype (see Key): cblt_os_size
- Picture: pic x(4) comp-5.
On Entry:
-
enum-handle
- Not set.
-
enum-flags
- Flags controlling the behaviour of the call. Must be set to 0.
-
number-of-printers-found
- Not set.
On Exit:
-
enum-handle
- Valid enumeration handle if number of printers > 0
-
number-of-printers-found
- Number of printers found
- return-value
- One of:
- 0
- Enumeration started
- != 0
- PC_PRINTER error code