DeletePrinterConnection function winspool

bool DeletePrinterConnection(
  1. PCWSTR pName
)

Deletes a connection to a printer that was established by a call to AddPrinterConnection or ConnectToPrinterDlg.

To learn more, see learn.microsoft.com/windows/win32/printdocs/deleteprinterconnection.

Implementation

@pragma('vm:prefer-inline')
bool DeletePrinterConnection(PCWSTR pName) =>
    _DeletePrinterConnection(pName) != FALSE;