EnumPortsW(3w)

EnumPortsW3w

Usage

BOOL EnumPortsW
(
LPWSTR pName,
DWORD Level,
LPBYTE pPorts,
DWORD cbBuf,
LPDWORD pcbNeeded,
LPDWORD pcReturned
)

Overview

Enumerate available Ports.

Params

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

Level [In] Structure-Level (1 or 2).

pPorts [Out] PTR to Buffer that receives the Result.

cbBuf [In] Size of Buffer at pPorts.

pcbNeeded [Out] PTR to DWORD that receives the size in Bytes used / required for pPorts.

pcReturned [Out] PTR to DWORD that receives the number of Ports in pPorts.

Returns

Success: TRUE

Failure: FALSE and in pcbNeeded the Bytes required for pPorts, if cbBuf is too small

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.