]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.28.0/src/Windows/Win32/Storage/Xps/Printing/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Win32 / Storage / Xps / Printing / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
3 extern "system" {
4 #[cfg(feature = "Win32_Foundation")]
5 pub fn StartXpsPrintJob(
6 printername: super::super::super::Foundation::PWSTR,
7 jobname: super::super::super::Foundation::PWSTR,
8 outputfilename: super::super::super::Foundation::PWSTR,
9 progressevent: super::super::super::Foundation::HANDLE,
10 completionevent: super::super::super::Foundation::HANDLE,
11 printablepageson: *const u8,
12 printablepagesoncount: u32,
13 xpsprintjob: *mut IXpsPrintJob,
14 documentstream: *mut IXpsPrintJobStream,
15 printticketstream: *mut IXpsPrintJobStream,
16 ) -> ::windows_sys::core::HRESULT;
17 #[cfg(feature = "Win32_Foundation")]
18 pub fn StartXpsPrintJob1(printername: super::super::super::Foundation::PWSTR, jobname: super::super::super::Foundation::PWSTR, outputfilename: super::super::super::Foundation::PWSTR, progressevent: super::super::super::Foundation::HANDLE, completionevent: super::super::super::Foundation::HANDLE, xpsprintjob: *mut IXpsPrintJob, printcontentreceiver: *mut super::IXpsOMPackageTarget) -> ::windows_sys::core::HRESULT;
19 }
20 pub const ID_DOCUMENTPACKAGETARGET_MSXPS: ::windows_sys::core::GUID = ::windows_sys::core::GUID {
21 data1: 2628665512,
22 data2: 57041,
23 data3: 16841,
24 data4: [169, 253, 215, 53, 239, 51, 174, 218],
25 };
26 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] };
27 pub const ID_DOCUMENTPACKAGETARGET_OPENXPS_WITH_3D: ::windows_sys::core::GUID = ::windows_sys::core::GUID {
28 data1: 1675351840,
29 data2: 35604,
30 data3: 17783,
31 data4: [176, 116, 123, 177, 27, 89, 109, 40],
32 };
33 pub type IPrintDocumentPackageStatusEvent = *mut ::core::ffi::c_void;
34 pub type IPrintDocumentPackageTarget = *mut ::core::ffi::c_void;
35 pub type IPrintDocumentPackageTargetFactory = *mut ::core::ffi::c_void;
36 pub type IXpsPrintJob = *mut ::core::ffi::c_void;
37 pub type IXpsPrintJobStream = *mut ::core::ffi::c_void;
38 pub type PrintDocumentPackageCompletion = i32;
39 pub const PrintDocumentPackageCompletion_InProgress: PrintDocumentPackageCompletion = 0i32;
40 pub const PrintDocumentPackageCompletion_Completed: PrintDocumentPackageCompletion = 1i32;
41 pub const PrintDocumentPackageCompletion_Canceled: PrintDocumentPackageCompletion = 2i32;
42 pub const PrintDocumentPackageCompletion_Failed: PrintDocumentPackageCompletion = 3i32;
43 #[repr(C)]
44 pub struct PrintDocumentPackageStatus {
45 pub JobId: u32,
46 pub CurrentDocument: i32,
47 pub CurrentPage: i32,
48 pub CurrentPageTotal: i32,
49 pub Completion: PrintDocumentPackageCompletion,
50 pub PackageStatus: ::windows_sys::core::HRESULT,
51 }
52 impl ::core::marker::Copy for PrintDocumentPackageStatus {}
53 impl ::core::clone::Clone for PrintDocumentPackageStatus {
54 fn clone(&self) -> Self {
55 *self
56 }
57 }
58 pub const PrintDocumentPackageTarget: ::windows_sys::core::GUID = ::windows_sys::core::GUID {
59 data1: 1212311198,
60 data2: 39239,
61 data3: 18154,
62 data4: [139, 162, 216, 204, 228, 50, 194, 202],
63 };
64 pub const PrintDocumentPackageTargetFactory: ::windows_sys::core::GUID = ::windows_sys::core::GUID {
65 data1: 881783165,
66 data2: 27777,
67 data3: 18818,
68 data4: [146, 180, 238, 24, 138, 67, 134, 122],
69 };
70 pub type XPS_JOB_COMPLETION = i32;
71 pub const XPS_JOB_IN_PROGRESS: XPS_JOB_COMPLETION = 0i32;
72 pub const XPS_JOB_COMPLETED: XPS_JOB_COMPLETION = 1i32;
73 pub const XPS_JOB_CANCELLED: XPS_JOB_COMPLETION = 2i32;
74 pub const XPS_JOB_FAILED: XPS_JOB_COMPLETION = 3i32;
75 #[repr(C)]
76 pub struct XPS_JOB_STATUS {
77 pub jobId: u32,
78 pub currentDocument: i32,
79 pub currentPage: i32,
80 pub currentPageTotal: i32,
81 pub completion: XPS_JOB_COMPLETION,
82 pub jobStatus: ::windows_sys::core::HRESULT,
83 }
84 impl ::core::marker::Copy for XPS_JOB_STATUS {}
85 impl ::core::clone::Clone for XPS_JOB_STATUS {
86 fn clone(&self) -> Self {
87 *self
88 }
89 }