SetDefaultPrinter function Null safety winspool

int SetDefaultPrinter(
  1. Pointer<Utf16> pszPrinter
)

The SetDefaultPrinter function sets the printer name of the default printer for the current user on the local computer.

BOOL SetDefaultPrinterW(
  _In_ LPCTSTR pszPrinter
);

Implementation

int SetDefaultPrinter(Pointer<Utf16> pszPrinter) =>
    _SetDefaultPrinter(pszPrinter);