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

# AddPortExW(3w)

## NAME

**AddPortExW** (WINSPOOL.@)

## SYNOPSIS

BOOL AddPortExW\
  (\
   LPWSTR *pName*,\
   DWORD  *level*,\
   LPBYTE *pBuffer*,\
   LPWSTR *pMonitorName*\
  )

## DESCRIPTION

Add a Port for a specific Monitor, without presenting a user interface.

## PARAMS

*pName* **\[In\]**  Servername or **NULL** (local Computer).

*level* **\[In\]**  Structure-Level (**1** or **2**) for *pBuffer*.

*pBuffer* **\[In\]**  **PTR** to: **PORT\_INFO\_1** or **PORT\_INFO\_2**.

*pMonitorName* **\[In\]**  Name of the Monitor that manage the Port.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

Declared in **"winspool.h"**.

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

Debug channel **"winspool"**.
