Skip to content

Latest commit

 

History

History
105 lines (67 loc) · 2.45 KB

printer-enum-values.md

File metadata and controls

105 lines (67 loc) · 2.45 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
The PRINTER\_ENUM\_VALUES structure specifies the value name, type, and data for a printer configuration value returned by the EnumPrinterDataEx function.
87eb1452-0d9d-46bd-8af8-0542a11a929b
PRINTER_ENUM_VALUES structure (Winspool.h)
reference
05/31/2018
APIRef
kbSyntax
PRINTER_ENUM_VALUES
_PRINTER_ENUM_VALUESA
_PRINTER_ENUM_VALUESW
HeaderDef
Winspool.h

PRINTER_ENUM_VALUES structure

The PRINTER_ENUM_VALUES structure specifies the value name, type, and data for a printer configuration value returned by the EnumPrinterDataEx function.

Syntax

typedef struct _PRINTER_ENUM_VALUES {
  LPTSTR pValueName;
  DWORD  cbValueName;
  DWORD  dwType;
  LPBYTE pData;
  DWORD  cbData;
} PRINTER_ENUM_VALUES, *PPRINTER_ENUM_VALUES;

Members

pValueName

Pointer to a null-terminated string that specifies the name of the retrieved value.

cbValueName

The number of bytes in the pValueName member, including the terminating NULL character.

dwType

A code indicating the type of data pointed to by the pData member. For a list of the possible type codes, see Registry Value Types.

pData

Pointer to a buffer containing the data for the retrieved value.

cbData

The number of bytes retrieved in the pData buffer.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Winspool.h (include Windows.h)
Unicode and ANSI names
_PRINTER_ENUM_VALUESW (Unicode) and _PRINTER_ENUM_VALUESA (ANSI)

See also

Printing

Print Spooler API Structures

EnumPrinterDataEx