GetSpoolFileHandle function winspool

Win32Result<HANDLE> GetSpoolFileHandle(
  1. PRINTER_HANDLE hPrinter
)

Retrieves a handle for the spool file associated with the job currently submitted by the application.

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

Implementation

Win32Result<HANDLE> GetSpoolFileHandle(PRINTER_HANDLE hPrinter) {
  final result_ = GetSpoolFileHandle_Wrapper(hPrinter);
  return .new(value: .new(result_.value.ptr), error: result_.error);
}