Vanara.PInvoke.Printing 3.4.2

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Vanara.PInvoke.Printing --version 3.4.2                
NuGet\Install-Package Vanara.PInvoke.Printing -Version 3.4.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vanara.PInvoke.Printing" Version="3.4.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vanara.PInvoke.Printing --version 3.4.2                
#r "nuget: Vanara.PInvoke.Printing, 3.4.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vanara.PInvoke.Printing as a Cake Addin
#addin nuget:?package=Vanara.PInvoke.Printing&version=3.4.2

// Install Vanara.PInvoke.Printing as a Cake Tool
#tool nuget:?package=Vanara.PInvoke.Printing&version=3.4.2                

Vanara

Vanara.PInvoke.Printing NuGet Package

Version Build status

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

What is Vanara?

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. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.Printing

Functions Enumerations Structures Interfaces
AbortPrinter<br>AddForm<br>AddJob<br>AddMonitor<br>AddPort<br>AddPrinter<br>AddPrinterConnection<br>AddPrinterConnection2<br>AddPrinterDriver<br>AddPrinterDriverEx<br>AddPrintProcessor<br>AddPrintProvidor<br>AdvancedDocumentProperties<br>BindPTProviderThunkA<br>BindPTProviderThunkW<br>ClosePrinter<br>CloseSpoolFileHandle<br>CommitSpoolData<br>ConfigurePort<br>ConnectToPrinterDlg<br>ConvertDevModeToPrintTicketThunk2<br>ConvertPrintTicketToDevModeThunk2<br>CorePrinterDriverInstalled<br>DeleteForm<br>DeleteMonitor<br>DeletePort<br>DeletePrinter<br>DeletePrinterConnection<br>DeletePrinterData<br>DeletePrinterDataEx<br>DeletePrinterDriver<br>DeletePrinterDriverEx<br>DeletePrinterDriverPackage<br>DeletePrinterKey<br>DeletePrintProcessor<br>DeletePrintProvidor<br>DeviceCapabilities<br>DocumentEventA<br>DocumentEventW<br>DocumentProperties<br>EndDocPrinter<br>EndPagePrinter<br>EnumForms<br>EnumJobs<br>EnumMonitors<br>EnumPorts<br>EnumPrinterData<br>EnumPrinterDataEx<br>EnumPrinterDrivers<br>EnumPrinterKey<br>EnumPrinters<br>EnumPrintProcessorDatatypes<br>EnumPrintProcessors<br>FindClosePrinterChangeNotification<br>FindFirstPrinterChangeNotification<br>FindNextPrinterChangeNotification<br>FlushPrinter<br>FreePrinterNotifyInfo<br>GetCorePrinterDrivers<br>GetDefaultPrinter<br>GetForm<br>GetJob<br>GetPrintCapabilitiesThunk2<br>GetPrinter<br>GetPrinterData<br>GetPrinterDataEx<br>GetPrinterDriver<br>GetPrinterDriver2<br>GetPrinterDriverDirectory<br>GetPrinterDriverPackagePath<br>GetPrintExecutionData<br>GetPrintProcessorDirectory<br>GetSpoolFileHandle<br>InstallPrinterDriverFromPackage<br>IsValidDevmode<br>MergeAndValidatePrintTicketThunk2<br>OpenPrinter<br>OpenPrinter2<br>PrinterProperties<br>PTCloseProvider<br>PTConvertDevModeToPrintTicket<br>PTConvertPrintTicketToDevMode<br>PTGetPrintCapabilities<br>PTGetPrintDeviceCapabilities<br>PTGetPrintDeviceResources<br>PTMergeAndValidatePrintTicket<br>PTOpenProvider<br>PTOpenProviderEx<br>PTQuerySchemaVersionSupport<br>PTReleaseMemory<br>ReadPrinter<br>ReportJobProcessingProgress<br>ResetPrinter<br>ScheduleJob<br>SetDefaultPrinter<br>SetForm<br>SetJob<br>SetPort<br>SetPrinter<br>SetPrinterData<br>SetPrinterDataEx<br>StartDocPrinter<br>StartPagePrinter<br>StartXpsPrintJob<br>StartXpsPrintJob1<br>UnbindPTProviderThunk<br>UploadPrinterDriverPackage<br>WritePrinter<br> PrintDocumentPackageCompletion<br>EDefaultDevmodeType<br>EPrintTicketScope<br>APD<br>DPD<br>UPDP<br>AccessRights<br>DC<br>DM<br>DOCUMENTEVENT<br>DSPRINT<br>EPrintPropertyType<br>EPrintXPSJobOperation<br>EPrintXPSJobProgress<br>FormFlags<br>FormStringType<br>JOB_CONTROL<br>JOB_NOTIFY_FIELD<br>JOB_PRIORITY<br>JOB_STATUS<br>NOTIFY_TYPE<br>PORT_STATUS<br>PORT_STATUS_TYPE<br>PORT_TYPE<br>PPCAPS_BORDER<br>PPCAPS_DIRECTION<br>PPCAPS_DUPLEX<br>PPCAPS_EDGE<br>PPCAPS_SCALING<br>PRINT_EXECUTION_CONTEXT<br>PRINTER_ATTRIBUTE<br>PRINTER_CHANGE<br>PRINTER_CONNECTION_FLAGS<br>PRINTER_CONTROL<br>PRINTER_ENUM<br>PRINTER_NOTIFY_CATEGORY<br>PRINTER_NOTIFY_FIELD<br>PRINTER_NOTIFY_OPTIONS_FLAG<br>PRINTER_OPTION_FLAGS<br>PRINTER_STATUS<br>PrinterDriverAttributes<br>XPS_COLOR_INTERPOLATION<br>XPS_COLOR_TYPE<br>XPS_DASH_CAP<br>XPS_DOCUMENT_TYPE<br>XPS_FILL_RULE<br>XPS_FONT_EMBEDDING<br>XPS_IMAGE_TYPE<br>XPS_INTERLEAVING<br>XPS_LINE_CAP<br>XPS_LINE_JOIN<br>XPS_OBJECT_TYPE<br>XPS_SEGMENT_STROKE_PATTERN<br>XPS_SEGMENT_TYPE<br>XPS_SPREAD_METHOD<br>XPS_STYLE_SIMULATION<br>XPS_THUMBNAIL_SIZE<br>XPS_TILE_MODE<br>XPS_JOB_COMPLETION<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> PrintDocumentPackageStatus<br>HPTPROVIDER<br>ADDJOB_INFO_1<br>CORE_PRINTER_DRIVER<br>DATATYPES_INFO_1<br>DOC_INFO_1<br>DOC_INFO_2<br>DOC_INFO_3<br>DRIVER_INFO_1<br>DRIVER_INFO_2<br>DRIVER_INFO_3<br>DRIVER_INFO_4<br>DRIVER_INFO_5<br>DRIVER_INFO_6<br>DRIVER_INFO_8<br>FORM_INFO_1<br>FORM_INFO_2<br>HPRINTER<br>HPRINTERCHANGENOTIFICATION<br>HSPOOLFILE<br>JOB_INFO_1<br>JOB_INFO_2<br>JOB_INFO_3<br>JOB_INFO_4<br>MONITOR_INFO_1<br>MONITOR_INFO_2<br>PORT_INFO_1<br>PORT_INFO_2<br>PORT_INFO_3<br>PRINT_EXECUTION_DATA<br>PRINTER_CONNECTION_INFO_1<br>PRINTER_ENUM_VALUES<br>PRINTER_INFO_1<br>PRINTER_INFO_2<br>PRINTER_INFO_3<br>PRINTER_INFO_4<br>PRINTER_INFO_5<br>PRINTER_INFO_6<br>PRINTER_INFO_7<br>PRINTER_INFO_8<br>PRINTER_INFO_9<br>PRINTER_NOTIFY_INFO<br>PRINTER_NOTIFY_INFO_DATA<br>PRINTER_NOTIFY_OPTIONS<br>PRINTER_NOTIFY_OPTIONS_TYPE<br>PRINTER_OPTIONS<br>PRINTPROCESSOR_CAPS_1<br>PRINTPROCESSOR_CAPS_2<br>PRINTPROCESSOR_INFO_1<br>PROVIDOR_INFO_1<br>PROVIDOR_INFO_2<br>XPS_POINT<br>XPS_RECT<br>XPS_SIZE<br>XPS_COLOR<br>XPS_DASH<br>XPS_GLYPH_INDEX<br>XPS_GLYPH_MAPPING<br>XPS_MATRIX<br>XPS_JOB_STATUS<br>NOTIFYDATA<br>XPS_COLOR_TYPE_SCRGB<br>XPS_COLOR_TYPE_CONTEXT<br>XPS_COLOR_TYPE_SRGB<br>DATA<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> IPrintDocumentPageSource<br>IPrintPreviewPageCollection<br>IPrintDocumentPackageStatusEvent<br>IPrintDocumentPackageTarget<br>IPrintDocumentPackageTargetFactory<br>IXpsOMBrush<br>IXpsOMCanvas<br>IXpsOMColorProfileResource<br>IXpsOMColorProfileResourceCollection<br>IXpsOMDashCollection<br>IXpsOMDictionary<br>IXpsOMDocumentStructureResource<br>IXpsOMFontResource<br>IXpsOMFontResourceCollection<br>IXpsOMGeometry<br>IXpsOMGeometryFigure<br>IXpsOMGeometryFigureCollection<br>IXpsOMGlyphs<br>IXpsOMGlyphsEditor<br>IXpsOMGradientBrush<br>IXpsOMGradientStop<br>IXpsOMGradientStopCollection<br>IXpsOMImageBrush<br>IXpsOMImageResource<br>IXpsOMObjectFactory<br>IXpsOMCoreProperties<br>IXpsOMDocument<br>IXpsOMDocumentCollection<br>IXpsOMDocumentSequence<br>IXpsOMPackage<br>IXpsOMPackageWriter<br>IXpsOMPage<br>IXpsOMPageReference<br>IXpsOMPageReferenceCollection<br>IXpsOMPart<br>IXpsOMPartResources<br>IXpsOMPartUriCollection<br>IXpsOMImageResourceCollection<br>IXpsOMLinearGradientBrush<br>IXpsOMMatrixTransform<br>IXpsOMNameCollection<br>IXpsOMPath<br>IXpsOMPrintTicketResource<br>IXpsOMRadialGradientBrush<br>IXpsOMRemoteDictionaryResource<br>IXpsOMRemoteDictionaryResourceCollection<br>IXpsOMResource<br>IXpsOMShareable<br>IXpsOMSignatureBlockResource<br>IXpsOMSignatureBlockResourceCollection<br>IXpsOMSolidColorBrush<br>IXpsOMStoryFragmentsResource<br>IXpsOMThumbnailGenerator<br>IXpsOMTileBrush<br>IXpsOMVisual<br>IXpsOMVisualBrush<br>IXpsOMVisualCollection<br>IXpsPrintJob<br>IXpsPrintJobStream<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Vanara.PInvoke.Printing:

Package Downloads
Vanara.Library

The full set of packages associated with the Vanara PInvoke Libraries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.4 843 9/13/2024
4.0.3 299 8/5/2024
4.0.2 444 6/24/2024
4.0.1 708 4/30/2024
4.0.0 224 3/29/2024
4.0.0-beta2 156 1/22/2024
4.0.0-beta 155 11/20/2023
3.4.17 1,372 10/18/2023
3.4.16 386 8/7/2023
3.4.15 1,732 5/18/2023
3.4.14 301 4/15/2023
3.4.13 1,385 2/4/2023
3.4.12 1,201 1/15/2023
3.4.11 3,032 11/15/2022
3.4.10 887 10/25/2022
3.4.9 1,102 10/3/2022
3.4.8 746 9/16/2022
3.4.7 765 9/3/2022
3.4.6 785 8/7/2022
3.4.5 861 7/17/2022
3.4.4 790 7/5/2022
3.4.3 907 6/14/2022
3.4.2 1,874 5/13/2022
3.4.1 869 5/5/2022
3.4.0 1,673 3/14/2022
3.3.15 610 12/27/2021
3.3.14 796 10/26/2021
3.3.13 613 9/30/2021
3.3.12 933 8/30/2021
3.3.11 561 7/22/2021
3.3.10 648 6/4/2021
3.3.9 645 5/7/2021
3.3.8 596 4/7/2021
3.3.7 596 3/24/2021
3.3.6 682 3/19/2021
3.3.5 574 3/1/2021
3.3.4 570 2/11/2021
3.3.3 550 2/3/2021
3.3.2 599 1/21/2021
3.3.1 647 1/20/2021
3.3.0 694 11/20/2020
3.2.21 590 11/13/2020
3.2.20 722 11/8/2020
3.2.19 660 10/23/2020
3.2.18 693 10/21/2020
3.2.17 795 9/20/2020
3.2.16 661 9/7/2020
3.2.15 695 8/30/2020
3.2.14 619 8/20/2020
3.2.13 735 7/27/2020
3.2.12 647 7/13/2020
3.2.11 741 6/28/2020
3.2.10 758 6/14/2020
3.2.9 730 6/3/2020
3.2.7 745 5/4/2020
3.2.6 681 4/21/2020
3.2.5 642 4/15/2020
3.2.4 700 4/12/2020
3.2.3 689 4/1/2020
3.2.2 664 3/24/2020
3.2.1 677 3/17/2020
3.2.0 908 2/27/2020
3.1.9 749 1/17/2020
3.1.8 742 1/13/2020
3.1.7 759 1/6/2020
3.1.6 729 12/12/2019

Currently implements:

Functions
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

Structures
ADDJOB_INFO_1 CORE_PRINTER_DRIVER DATA 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 HPTPROVIDER HSPOOLFILE JOB_INFO_1 JOB_INFO_2 JOB_INFO_3 JOB_INFO_4 MONITOR_INFO_1 MONITOR_INFO_2 NOTIFYDATA PORT_INFO_1 PORT_INFO_2 PORT_INFO_3 PrintDocumentPackageStatus 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 PRINT_EXECUTION_DATA PROVIDOR_INFO_1 PROVIDOR_INFO_2 XPS_COLOR XPS_COLOR_TYPE_CONTEXT XPS_COLOR_TYPE_SCRGB XPS_COLOR_TYPE_SRGB XPS_DASH XPS_GLYPH_INDEX XPS_GLYPH_MAPPING XPS_JOB_STATUS XPS_MATRIX XPS_POINT XPS_RECT XPS_SIZE

Interfaces
IPrintDocumentPackageStatusEvent IPrintDocumentPackageTarget IPrintDocumentPackageTargetFactory IPrintDocumentPageSource IPrintPreviewPageCollection IXpsOMBrush IXpsOMCanvas IXpsOMColorProfileResource IXpsOMColorProfileResourceCollection IXpsOMCoreProperties IXpsOMDashCollection IXpsOMDictionary IXpsOMDocument IXpsOMDocumentCollection IXpsOMDocumentSequence IXpsOMDocumentStructureResource IXpsOMFontResource IXpsOMFontResourceCollection IXpsOMGeometry IXpsOMGeometryFigure IXpsOMGeometryFigureCollection IXpsOMGlyphs IXpsOMGlyphsEditor IXpsOMGradientBrush IXpsOMGradientStop IXpsOMGradientStopCollection IXpsOMImageBrush IXpsOMImageResource IXpsOMImageResourceCollection IXpsOMLinearGradientBrush IXpsOMMatrixTransform IXpsOMNameCollection IXpsOMObjectFactory IXpsOMPackage IXpsOMPackageWriter IXpsOMPage IXpsOMPageReference IXpsOMPageReferenceCollection IXpsOMPart IXpsOMPartResources IXpsOMPartUriCollection IXpsOMPath IXpsOMPrintTicketResource IXpsOMRadialGradientBrush IXpsOMRemoteDictionaryResource IXpsOMRemoteDictionaryResourceCollection IXpsOMResource IXpsOMShareable IXpsOMSignatureBlockResource IXpsOMSignatureBlockResourceCollection IXpsOMSolidColorBrush IXpsOMStoryFragmentsResource IXpsOMThumbnailGenerator IXpsOMTileBrush IXpsOMVisual IXpsOMVisualBrush IXpsOMVisualCollection IXpsPrintJob IXpsPrintJobStream