GetPrinterData function winspool
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,
);