GetPrinterData function winspool

int GetPrinterData(
  1. PRINTER_HANDLE hPrinter,
  2. PCWSTR pValueName,
  3. Pointer<Uint32>? pType,
  4. Pointer<Uint8>? pData,
  5. int nSize,
  6. Pointer<Uint32> pcbNeeded,
)

Retrieves configuration data for the specified printer or print server.

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

Implementation

@pragma('vm:prefer-inline')
int GetPrinterData(
  PRINTER_HANDLE hPrinter,
  PCWSTR pValueName,
  Pointer<Uint32>? pType,
  Pointer<Uint8>? pData,
  int nSize,
  Pointer<Uint32> pcbNeeded,
) => _GetPrinterData(
  hPrinter,
  pValueName,
  pType ?? nullptr,
  pData ?? nullptr,
  nSize,
  pcbNeeded,
);