Desktop Functions: Smart Device Functions:
|
OpenPrinter (winspool)
C# Signature:
[DllImport("winspool.drv", EntryPoint="OpenPrinter")] VB Signature:User-Defined Types:Notes:This is actually the sig for OpenPrinterA. Tips & Tricks:Sample Code:How to cancel a print job: int pHandle = 0; Printer_Defaults defaults = new Printer_Defaults(); byte b = 0; OpenPrinterA(printerName, ref pHandle, ref defaults); SetJobA(pHandle, (int)jobID, 0, ref b, (int)Job_Control.Cancel); ClosePrinter(pHandle); Alternative Managed API:The System.Management API allows for lots of printer stuff, but doesn't let you delete a print job in Win2K. Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|