EnumPrinterData function winspool

int EnumPrinterData(
  1. PRINTER_HANDLE hPrinter,
  2. int dwIndex,
  3. PWSTR pValueName,
  4. int cbValueName,
  5. Pointer<Uint32> pcbValueName,
  6. Pointer<Uint32>? pType,
  7. Pointer<Uint8>? pData,
  8. int cbData,
  9. Pointer<Uint32>? pcbData,
)

Enumerates configuration data for a specified printer.

To learn more, see learn.microsoft.com/windows/win32/printdocs/enumprinterdata.

Implementation

@pragma('vm:prefer-inline')
int EnumPrinterData(
  PRINTER_HANDLE hPrinter,
  int dwIndex,
  PWSTR pValueName,
  int cbValueName,
  Pointer<Uint32> pcbValueName,
  Pointer<Uint32>? pType,
  Pointer<Uint8>? pData,
  int cbData,
  Pointer<Uint32>? pcbData,
) => _EnumPrinterData(
  hPrinter,
  dwIndex,
  pValueName,
  cbValueName,
  pcbValueName,
  pType ?? nullptr,
  pData ?? nullptr,
  cbData,
  pcbData ?? nullptr,
);