SetDefaultPrinterW(3w)

SetDefaultPrinterW3w

Usage

BOOL SetDefaultPrinterW
(
LPCWSTR pszPrinter
)

Overview

Set the Name of the Default Printer.

Params

pszPrinter [In] Name of the Printer or NULL.

Returns

Success: TRUE

Failure: FALSE.

Notes

When the Parameter is NULL or points to an Empty String and a Default Printer was already present, then this Function changes nothing. Without a Default Printer and NULL (or an Empty String) as Parameter, the First enumerated local Printer is used.

Implementation

Declared in "winspool.h".

Implemented in "dlls/winspool.drv/info.c".

Debug channel "winspool".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.