EnumPortsW.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

EnumPortsW (WINSPOOL.@)

SYNOPSIS

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

DESCRIPTION

Enumerate available Ports.

PARAMS

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

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

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

bufsize [In] Size of Buffer at buffer.

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

bufreturned [Out] PTR to DWORD that receives the number of Ports in buffer.

RETURNS

Success: TRUE

Failure: FALSE and in bufneeded the Bytes required for buffer, if bufsize is too small

IMPLEMENTATION

Defined in "winspool.h".

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

Debug channel "winspool".