NAME

OpenPrinterW  (WINSPOOL.@)

SYNOPSIS

 BOOL OpenPrinterW
 (
  LPWSTR             name,
  HANDLE*            printer,
  PRINTER_DEFAULTSW* defaults
 )

DESCRIPTION

Open a Printer / Printserver or a Printer-Object.

PARAMS

lpPrinterName [In] Name of Printserver, Printer, or Printer-Object.
phPrinter [Out] The resulting Handle is stored here.
pDefault [In] PTR to Default Printer Settings or NULL.

RETURNS

Success: TRUE

Failure: FALSE.

NOTES

lpPrinterName is one of:

  Printserver (NT only): "Servername" or NULL for the local Printserver
  Printer: "PrinterName"
  Printer-Object: "PrinterName,Job xxx"
  XcvMonitor: "Servername,XcvMonitor MonitorName"
  XcvPort: "Servername,XcvPort PortName".

BUGS

  Printer-Object not supported
  pDefaults is ignored

IMPLEMENTATION

Declared in "winspool.h". https://source.winehq.org/source/include/winspool.h

Implemented in "dlls/winspool.drv/info.c". https://source.winehq.org/source/dlls/winspool.drv/info.c

Debug channel "winspool".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.