1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
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
;
20 pub const ID_DOCUMENTPACKAGETARGET_MSXPS
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID
{
24 data4
: [169, 253, 215, 53, 239, 51, 174, 218],
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
{
31 data4
: [176, 116, 123, 177, 27, 89, 109, 40],
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;
44 pub struct PrintDocumentPackageStatus
{
46 pub CurrentDocument
: i32,
48 pub CurrentPageTotal
: i32,
49 pub Completion
: PrintDocumentPackageCompletion
,
50 pub PackageStatus
: ::windows_sys
::core
::HRESULT
,
52 impl ::core
::marker
::Copy
for PrintDocumentPackageStatus {}
53 impl ::core
::clone
::Clone
for PrintDocumentPackageStatus
{
54 fn clone(&self) -> Self {
58 pub const PrintDocumentPackageTarget
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID
{
62 data4
: [139, 162, 216, 204, 228, 50, 194, 202],
64 pub const PrintDocumentPackageTargetFactory
: ::windows_sys
::core
::GUID
= ::windows_sys
::core
::GUID
{
68 data4
: [146, 180, 238, 24, 138, 67, 134, 122],
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;
76 pub struct XPS_JOB_STATUS
{
78 pub currentDocument
: i32,
80 pub currentPageTotal
: i32,
81 pub completion
: XPS_JOB_COMPLETION
,
82 pub jobStatus
: ::windows_sys
::core
::HRESULT
,
84 impl ::core
::marker
::Copy
for XPS_JOB_STATUS {}
85 impl ::core
::clone
::Clone
for XPS_JOB_STATUS
{
86 fn clone(&self) -> Self {