---
name: "SetDefaultPrinterW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SetDefaultPrinterW"
---

# SetDefaultPrinterW(3w)

## NAME

**SetDefaultPrinterW** (WINSPOOL.204)

## SYNOPSIS

BOOL SetDefaultPrinterW\
  (\
   LPCWSTR *pszPrinter*\
  )

## DESCRIPTION

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"**.
