GetPrinterDataEx function winspool

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

Retrieves configuration data for the specified printer or print server.

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

Implementation

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