ResetPrinter function Null safety winspool

int ResetPrinter(
  1. int hPrinter,
  2. Pointer<PRINTER_DEFAULTS> pDefault

The ResetPrinter function specifies the data type and device mode values to be used for printing documents submitted by the StartDocPrinter function. These values can be overridden by using the SetJob function after document printing has started.

BOOL ResetPrinterW(
  _In_ HANDLE             hPrinter,


int ResetPrinter(int hPrinter, Pointer<PRINTER_DEFAULTS> pDefault) =>
    _ResetPrinter(hPrinter, pDefault);