OpenPrinterW(3w)

NAME

OpenPrinterW (WINSPOOL.@)

SYNOPSIS

BOOL OpenPrinterW
 (
  LPWSTR              lpPrinterName,
  HANDLE*             phPrinter,
  LPPRINTER_DEFAULTSW pDefault
 )

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

Defined in "winspool.h".

Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/winspool.drv/info.c".

Debug channel "winspool".
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout