OpenPrinter2 function Null safety winspool

int OpenPrinter2(
  1. Pointer<Utf16> pPrinterName,
  2. Pointer<IntPtr> phPrinter,
  3. Pointer<PRINTER_DEFAULTS> pDefault,
  4. Pointer<PRINTER_OPTIONS> pOptions

Retrieves a handle to the specified printer, print server, or other types of handles in the print subsystem, while setting some of the printer options.

BOOL OpenPrinter2W(
  _In_  LPCTSTR            pPrinterName,
  _Out_ LPHANDLE           phPrinter,
  _In_  PPRINTER_OPTIONS   pOptions


int OpenPrinter2(
        Pointer<Utf16> pPrinterName,
        Pointer<IntPtr> phPrinter,
        Pointer<PRINTER_DEFAULTS> pDefault,
        Pointer<PRINTER_OPTIONS> pOptions) =>
    _OpenPrinter2(pPrinterName, phPrinter, pDefault, pOptions);