PRINTER_OPTION_FLAGS enumeration

Specifies the caching of a handle for a printer opened with OpenPrinter2.

Syntax


typedef enum tagPRINTER_OPTION_FLAGS { 
  PRINTER_OPTION_NO_CACHE,
  PRINTER_OPTION_CACHE,
  PRINTER_OPTION_CLIENT_CHANGE
} PRINTER_OPTION_FLAGS;

Constants

PRINTER_OPTION_NO_CACHE

The handle is not cached. All functions applied to a handle returned by OpenPrinter2 will go to the remote computer.

PRINTER_OPTION_CACHE

The handle is cached. All functions applied to a handle returned by OpenPrinter2 will go to the local cache.

PRINTER_OPTION_CLIENT_CHANGE

The handle returned by OpenPrinter2 can be used by SetPrinter to rename the printer connection.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Winspool.h (include Windows.h)

See also

Printing
Print Spooler API Structures
OpenPrinter2
SetPrinter

 

 

Community Additions

ADD
Show:
© 2014 Microsoft