![Vanara](https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/VanaraHeading.png)
### **Vanara.PInvoke.Printing NuGet Package**
[![Version](https://img.shields.io/nuget/v/Vanara.PInvoke.Printing?label=NuGet&style=flat-square)](https://github.com/dahall/Vanara/releases)
[![Build status](https://img.shields.io/appveyor/build/dahall/vanara?label=AppVeyor%20build&style=flat-square)](https://ci.appveyor.com/project/dahall/vanara)

PInvoke API (methods, structures and constants) imported from Windows winspool.drv and prntvpt.dll.

### **What is Vanara?**

[Vanara](https://github.com/dahall/Vanara) is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.

### **Issues?**

First check if it's already fixed by trying the [AppVeyor build](https://ci.appveyor.com/nuget/vanara-prerelease).
If you're still running into problems, file an [issue](https://github.com/dahall/Vanara/issues).

### **Included in Vanara.PInvoke.Printing**

Functions | Enumerations | Structures | Interfaces
--- | --- | --- | ---
AbortPrinter AddForm AddJob AddMonitor AddPort AddPrinter AddPrinterConnection AddPrinterConnection2 AddPrinterDriver AddPrinterDriverEx AddPrintProcessor AddPrintProvidor AdvancedDocumentProperties BindPTProviderThunkA BindPTProviderThunkW ClosePrinter CloseSpoolFileHandle CommitSpoolData ConfigurePort ConnectToPrinterDlg ConvertDevModeToPrintTicketThunk2 ConvertPrintTicketToDevModeThunk2 CorePrinterDriverInstalled DeleteForm DeleteMonitor DeletePort DeletePrinter DeletePrinterConnection DeletePrinterData DeletePrinterDataEx DeletePrinterDriver DeletePrinterDriverEx DeletePrinterDriverPackage DeletePrinterKey DeletePrintProcessor DeletePrintProvidor DeviceCapabilities DocumentEventA DocumentEventW DocumentProperties EndDocPrinter EndPagePrinter EnumForms EnumJobs EnumMonitors EnumPorts EnumPrinterData EnumPrinterDataEx EnumPrinterDrivers EnumPrinterKey EnumPrinters EnumPrintProcessorDatatypes EnumPrintProcessors FindClosePrinterChangeNotification FindFirstPrinterChangeNotification FindNextPrinterChangeNotification FlushPrinter FreePrinterNotifyInfo GetCorePrinterDrivers GetDefaultPrinter GetForm GetJob GetPrintCapabilitiesThunk2 GetPrinter GetPrinterData GetPrinterDataEx GetPrinterDriver GetPrinterDriver2 GetPrinterDriverDirectory GetPrinterDriverPackagePath GetPrintExecutionData GetPrintProcessorDirectory GetSpoolFileHandle InstallPrinterDriverFromPackage IsValidDevmode MergeAndValidatePrintTicketThunk2 OpenPrinter OpenPrinter2 PrinterProperties PTCloseProvider PTConvertDevModeToPrintTicket PTConvertPrintTicketToDevMode PTGetPrintCapabilities PTGetPrintDeviceCapabilities PTGetPrintDeviceResources PTMergeAndValidatePrintTicket PTOpenProvider PTOpenProviderEx PTQuerySchemaVersionSupport PTReleaseMemory ReadPrinter ReportJobProcessingProgress ResetPrinter ScheduleJob SetDefaultPrinter SetForm SetJob SetPort SetPrinter SetPrinterData SetPrinterDataEx StartDocPrinter StartPagePrinter StartXpsPrintJob StartXpsPrintJob1 UnbindPTProviderThunk UploadPrinterDriverPackage WritePrinter  | PrintDocumentPackageCompletion EDefaultDevmodeType EPrintTicketScope APD DPD UPDP AccessRights DC DM DOCUMENTEVENT DSPRINT EPrintPropertyType EPrintXPSJobOperation EPrintXPSJobProgress FormFlags FormStringType JOB_CONTROL JOB_NOTIFY_FIELD JOB_PRIORITY JOB_STATUS NOTIFY_TYPE PORT_STATUS PORT_STATUS_TYPE PORT_TYPE PPCAPS_BORDER PPCAPS_DIRECTION PPCAPS_DUPLEX PPCAPS_EDGE PPCAPS_SCALING PRINT_EXECUTION_CONTEXT PRINTER_ATTRIBUTE PRINTER_CHANGE PRINTER_CONNECTION_FLAGS PRINTER_CONTROL PRINTER_ENUM PRINTER_NOTIFY_CATEGORY PRINTER_NOTIFY_FIELD PRINTER_NOTIFY_OPTIONS_FLAG PRINTER_OPTION_FLAGS PRINTER_STATUS PrinterDriverAttributes XPS_COLOR_INTERPOLATION XPS_COLOR_TYPE XPS_DASH_CAP XPS_DOCUMENT_TYPE XPS_FILL_RULE XPS_FONT_EMBEDDING XPS_IMAGE_TYPE XPS_INTERLEAVING XPS_LINE_CAP XPS_LINE_JOIN XPS_OBJECT_TYPE XPS_SEGMENT_STROKE_PATTERN XPS_SEGMENT_TYPE XPS_SPREAD_METHOD XPS_STYLE_SIMULATION XPS_THUMBNAIL_SIZE XPS_TILE_MODE XPS_JOB_COMPLETION                                                   | PrintDocumentPackageStatus HPTPROVIDER ADDJOB_INFO_1 CORE_PRINTER_DRIVER DATATYPES_INFO_1 DOC_INFO_1 DOC_INFO_2 DOC_INFO_3 DRIVER_INFO_1 DRIVER_INFO_2 DRIVER_INFO_3 DRIVER_INFO_4 DRIVER_INFO_5 DRIVER_INFO_6 DRIVER_INFO_8 FORM_INFO_1 FORM_INFO_2 HPRINTER HPRINTERCHANGENOTIFICATION HSPOOLFILE JOB_INFO_1 JOB_INFO_2 JOB_INFO_3 JOB_INFO_4 MONITOR_INFO_1 MONITOR_INFO_2 PORT_INFO_1 PORT_INFO_2 PORT_INFO_3 PRINT_EXECUTION_DATA PRINTER_CONNECTION_INFO_1 PRINTER_ENUM_VALUES PRINTER_INFO_1 PRINTER_INFO_2 PRINTER_INFO_3 PRINTER_INFO_4 PRINTER_INFO_5 PRINTER_INFO_6 PRINTER_INFO_7 PRINTER_INFO_8 PRINTER_INFO_9 PRINTER_NOTIFY_INFO PRINTER_NOTIFY_INFO_DATA PRINTER_NOTIFY_OPTIONS PRINTER_NOTIFY_OPTIONS_TYPE PRINTER_OPTIONS PRINTPROCESSOR_CAPS_1 PRINTPROCESSOR_CAPS_2 PRINTPROCESSOR_INFO_1 PROVIDOR_INFO_1 PROVIDOR_INFO_2 XPS_POINT XPS_RECT XPS_SIZE XPS_COLOR XPS_DASH XPS_GLYPH_INDEX XPS_GLYPH_MAPPING XPS_MATRIX XPS_JOB_STATUS NOTIFYDATA XPS_COLOR_TYPE_SCRGB XPS_COLOR_TYPE_CONTEXT XPS_COLOR_TYPE_SRGB DATA                                             | IPrintDocumentPageSource IPrintPreviewPageCollection IPrintDocumentPackageStatusEvent IPrintDocumentPackageTarget IPrintDocumentPackageTargetFactory IXpsOMBrush IXpsOMCanvas IXpsOMColorProfileResource IXpsOMColorProfileResourceCollection IXpsOMDashCollection IXpsOMDictionary IXpsOMDocumentStructureResource IXpsOMFontResource IXpsOMFontResourceCollection IXpsOMGeometry IXpsOMGeometryFigure IXpsOMGeometryFigureCollection IXpsOMGlyphs IXpsOMGlyphsEditor IXpsOMGradientBrush IXpsOMGradientStop IXpsOMGradientStopCollection IXpsOMImageBrush IXpsOMImageResource IXpsOMObjectFactory IXpsOMCoreProperties IXpsOMDocument IXpsOMDocumentCollection IXpsOMDocumentSequence IXpsOMPackage IXpsOMPackageWriter IXpsOMPage IXpsOMPageReference IXpsOMPageReferenceCollection IXpsOMPart IXpsOMPartResources IXpsOMPartUriCollection IXpsOMImageResourceCollection IXpsOMLinearGradientBrush IXpsOMMatrixTransform IXpsOMNameCollection IXpsOMPath IXpsOMPrintTicketResource IXpsOMRadialGradientBrush IXpsOMRemoteDictionaryResource IXpsOMRemoteDictionaryResourceCollection IXpsOMResource IXpsOMShareable IXpsOMSignatureBlockResource IXpsOMSignatureBlockResourceCollection IXpsOMSolidColorBrush IXpsOMStoryFragmentsResource IXpsOMThumbnailGenerator IXpsOMTileBrush IXpsOMVisual IXpsOMVisualBrush IXpsOMVisualCollection IXpsPrintJob IXpsPrintJobStream                                                  
