GetForm function winspool
Retrieves information about a specified form.
To learn more, see learn.microsoft.com/windows/win32/printdocs/getform.
Implementation
@pragma('vm:prefer-inline')
bool GetForm(
PRINTER_HANDLE hPrinter,
PCWSTR pFormName,
int level,
Pointer<Uint8>? pForm,
int cbBuf,
Pointer<Uint32> pcbNeeded,
) =>
_GetForm(hPrinter, pFormName, level, pForm ?? nullptr, cbBuf, pcbNeeded) !=
FALSE;