@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: DeletePrinterConnection - disconnect / remove client connection to a shared printer !!!!C# Signature: [DllImport("winspool.drv", CharSet = CharSet.Ansi, SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] internal static extern bool DeletePrinterConnection(String pName); !!!!VB Signature: Declare Function DeletePrinterConnection Lib "winspool.dll" (TODO) As TODO !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: bool result; Int32 Win32Error; result = DeletePrinterConnection("\\\\Server_Name\\Printer_Share"); if (result == false) { Win32Error = Marshal.GetLastWin32Error(); //Do something with Win32Error } Documentation: DeletePrinterConnection@msdn on MSDN
Edit winspool.DeletePr...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.