EnumForms function winspool
Enumerates the forms supported by the specified printer.
To learn more, see learn.microsoft.com/windows/win32/printdocs/enumforms.
Implementation
@pragma('vm:prefer-inline')
bool EnumForms(
PRINTER_HANDLE hPrinter,
int level,
Pointer<Uint8>? pForm,
int cbBuf,
Pointer<Uint32> pcbNeeded,
Pointer<Uint32> pcReturned,
) =>
_EnumForms(
hPrinter,
level,
pForm ?? nullptr,
cbBuf,
pcbNeeded,
pcReturned,
) !=
FALSE;