ConnectToPrinterDlg function Null safety winspool

int ConnectToPrinterDlg(
  1. int hwnd,
  2. int Flags
)

The ConnectToPrinterDlg function displays a dialog box that lets users browse and connect to printers on a network. If the user selects a printer, the function attempts to create a connection to it; if a suitable driver is not installed on the server, the user is given the option of creating a printer locally.

HANDLE ConnectToPrinterDlg(
  _In_ HWND  hwnd,
  _In_ DWORD Flags
);

Implementation

int ConnectToPrinterDlg(int hwnd, int Flags) =>
    _ConnectToPrinterDlg(hwnd, Flags);