EnumPrinterKey function winspool
Enumerates the subkeys of a specified key for a specified printer.
To learn more, see learn.microsoft.com/windows/win32/printdocs/enumprinterkey.
Implementation
@pragma('vm:prefer-inline')
int EnumPrinterKey(
PRINTER_HANDLE hPrinter,
PCWSTR pKeyName,
PWSTR? pSubkey,
int cbSubkey,
Pointer<Uint32> pcbSubkey,
) => _EnumPrinterKey(
hPrinter,
pKeyName,
pSubkey ?? nullptr,
cbSubkey,
pcbSubkey,
);