GetDefaultPrinter function Null safety winspool

int GetDefaultPrinter(
  1. Pointer<Utf16> pszBuffer,
  2. Pointer<Uint32> pcchBuffer
)

The GetDefaultPrinter function retrieves the printer name of the default printer for the current user on the local computer.

BOOL GetDefaultPrinterW(
  _In_    LPTSTR  pszBuffer,
  _Inout_ LPDWORD pcchBuffer
);

Implementation

int GetDefaultPrinter(Pointer<Utf16> pszBuffer, Pointer<Uint32> pcchBuffer) =>
    _GetDefaultPrinter(pszBuffer, pcchBuffer);