AddPrinterConnection2 function winspool
bool
AddPrinterConnection2(
- HWND? hWnd,
- PCWSTR pszName,
- int dwLevel,
- Pointer<
NativeType> pConnectionInfo,
Adds a connection to the specified printer for the current user and specifies connection details.
To learn more, see learn.microsoft.com/windows/win32/printdocs/addprinterconnection2.
Implementation
@pragma('vm:prefer-inline')
bool AddPrinterConnection2(
HWND? hWnd,
PCWSTR pszName,
int dwLevel,
Pointer pConnectionInfo,
) =>
_AddPrinterConnection2(
hWnd ?? nullptr,
pszName,
dwLevel,
pConnectionInfo,
) !=
FALSE;