diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /vendor/windows-sys-0.42.0/src/Windows/Win32/Storage/Xps/Printing/mod.rs | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys-0.42.0/src/Windows/Win32/Storage/Xps/Printing/mod.rs')
-rw-r--r-- | vendor/windows-sys-0.42.0/src/Windows/Win32/Storage/Xps/Printing/mod.rs | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/vendor/windows-sys-0.42.0/src/Windows/Win32/Storage/Xps/Printing/mod.rs b/vendor/windows-sys-0.42.0/src/Windows/Win32/Storage/Xps/Printing/mod.rs new file mode 100644 index 000000000..f1d26a985 --- /dev/null +++ b/vendor/windows-sys-0.42.0/src/Windows/Win32/Storage/Xps/Printing/mod.rs @@ -0,0 +1,71 @@ +#[cfg_attr(windows, link(name = "windows"))] +extern "system" { + #[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + pub fn StartXpsPrintJob(printername: ::windows_sys::core::PCWSTR, jobname: ::windows_sys::core::PCWSTR, outputfilename: ::windows_sys::core::PCWSTR, progressevent: super::super::super::Foundation::HANDLE, completionevent: super::super::super::Foundation::HANDLE, printablepageson: *const u8, printablepagesoncount: u32, xpsprintjob: *mut IXpsPrintJob, documentstream: *mut IXpsPrintJobStream, printticketstream: *mut IXpsPrintJobStream) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn StartXpsPrintJob1(printername: ::windows_sys::core::PCWSTR, jobname: ::windows_sys::core::PCWSTR, outputfilename: ::windows_sys::core::PCWSTR, progressevent: super::super::super::Foundation::HANDLE, completionevent: super::super::super::Foundation::HANDLE, xpsprintjob: *mut IXpsPrintJob, printcontentreceiver: *mut super::IXpsOMPackageTarget) -> ::windows_sys::core::HRESULT; +} +pub type IPrintDocumentPackageStatusEvent = *mut ::core::ffi::c_void; +pub type IPrintDocumentPackageTarget = *mut ::core::ffi::c_void; +pub type IPrintDocumentPackageTargetFactory = *mut ::core::ffi::c_void; +pub type IXpsPrintJob = *mut ::core::ffi::c_void; +pub type IXpsPrintJobStream = *mut ::core::ffi::c_void; +pub const ID_DOCUMENTPACKAGETARGET_MSXPS: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2628665512, data2: 57041, data3: 16841, data4: [169, 253, 215, 53, 239, 51, 174, 218] }; +pub const ID_DOCUMENTPACKAGETARGET_OPENXPS: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 5684082, data2: 35996, data3: 17938, data4: [189, 15, 147, 1, 42, 135, 9, 157] }; +pub const ID_DOCUMENTPACKAGETARGET_OPENXPS_WITH_3D: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 1675351840, data2: 35604, data3: 17783, data4: [176, 116, 123, 177, 27, 89, 109, 40] }; +pub const PrintDocumentPackageTarget: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 1212311198, data2: 39239, data3: 18154, data4: [139, 162, 216, 204, 228, 50, 194, 202] }; +pub const PrintDocumentPackageTargetFactory: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 881783165, data2: 27777, data3: 18818, data4: [146, 180, 238, 24, 138, 67, 134, 122] }; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub type PrintDocumentPackageCompletion = i32; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub const PrintDocumentPackageCompletion_InProgress: PrintDocumentPackageCompletion = 0i32; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub const PrintDocumentPackageCompletion_Completed: PrintDocumentPackageCompletion = 1i32; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub const PrintDocumentPackageCompletion_Canceled: PrintDocumentPackageCompletion = 2i32; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub const PrintDocumentPackageCompletion_Failed: PrintDocumentPackageCompletion = 3i32; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub type XPS_JOB_COMPLETION = i32; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub const XPS_JOB_IN_PROGRESS: XPS_JOB_COMPLETION = 0i32; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub const XPS_JOB_COMPLETED: XPS_JOB_COMPLETION = 1i32; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub const XPS_JOB_CANCELLED: XPS_JOB_COMPLETION = 2i32; +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub const XPS_JOB_FAILED: XPS_JOB_COMPLETION = 3i32; +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub struct PrintDocumentPackageStatus { + pub JobId: u32, + pub CurrentDocument: i32, + pub CurrentPage: i32, + pub CurrentPageTotal: i32, + pub Completion: PrintDocumentPackageCompletion, + pub PackageStatus: ::windows_sys::core::HRESULT, +} +impl ::core::marker::Copy for PrintDocumentPackageStatus {} +impl ::core::clone::Clone for PrintDocumentPackageStatus { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_Storage_Xps_Printing\"`*"] +pub struct XPS_JOB_STATUS { + pub jobId: u32, + pub currentDocument: i32, + pub currentPage: i32, + pub currentPageTotal: i32, + pub completion: XPS_JOB_COMPLETION, + pub jobStatus: ::windows_sys::core::HRESULT, +} +impl ::core::marker::Copy for XPS_JOB_STATUS {} +impl ::core::clone::Clone for XPS_JOB_STATUS { + fn clone(&self) -> Self { + *self + } +} |