| [1166] | 1 | /**
|
|---|
| 2 | * This file is part of the mingw-w64 runtime package.
|
|---|
| 3 | * No warranty is given; refer to the file DISCLAIMER within this package.
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | import "objidl.idl";
|
|---|
| 7 | import "oaidl.idl";
|
|---|
| 8 | import "ocidl.idl";
|
|---|
| 9 | import "xpsobjectmodel.idl";
|
|---|
| 10 |
|
|---|
| 11 | cpp_quote("#include <winapifamily.h>")
|
|---|
| 12 | cpp_quote("")
|
|---|
| 13 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
|---|
| 14 | cpp_quote("#if NTDDI_VERSION >= 0x06010000")
|
|---|
| 15 |
|
|---|
| 16 | typedef enum {
|
|---|
| 17 | XPS_JOB_IN_PROGRESS = 0,
|
|---|
| 18 | XPS_JOB_COMPLETED = 1,
|
|---|
| 19 | XPS_JOB_CANCELLED = 2,
|
|---|
| 20 | XPS_JOB_FAILED = 3
|
|---|
| 21 | } XPS_JOB_COMPLETION;
|
|---|
| 22 |
|
|---|
| 23 | typedef struct {
|
|---|
| 24 | UINT32 jobId;
|
|---|
| 25 | INT32 currentDocument;
|
|---|
| 26 | INT32 currentPage;
|
|---|
| 27 | INT32 currentPageTotal;
|
|---|
| 28 | XPS_JOB_COMPLETION completion;
|
|---|
| 29 | HRESULT jobStatus;
|
|---|
| 30 | } XPS_JOB_STATUS;
|
|---|
| 31 |
|
|---|
| 32 | [object, uuid (7a77dc5f-45d6-4dff-9307-d8cb846347ca), pointer_default (unique)]
|
|---|
| 33 | interface IXpsPrintJobStream : ISequentialStream {
|
|---|
| 34 | [local] HRESULT Close ();
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | [object, uuid (5ab89b06-8194-425f-ab3b-d7a96e350161), pointer_default (unique)]
|
|---|
| 38 | interface IXpsPrintJob : IUnknown {
|
|---|
| 39 | [local] HRESULT Cancel ();
|
|---|
| 40 | [local] HRESULT GetJobStatus ([out, retval] XPS_JOB_STATUS *jobStatus);
|
|---|
| 41 | }
|
|---|
| 42 |
|
|---|
| 43 | cpp_quote("HRESULT WINAPI StartXpsPrintJob (LPCWSTR printerName, LPCWSTR jobName, LPCWSTR outputFileName, HANDLE progressEvent, HANDLE completionEvent, UINT8 *printablePagesOn, UINT32 printablePagesOnCount, IXpsPrintJob **xpsPrintJob, IXpsPrintJobStream **documentStream, IXpsPrintJobStream **printTicketStream);")
|
|---|
| 44 | cpp_quote("HRESULT WINAPI StartXpsPrintJob1 (LPCWSTR printerName, LPCWSTR jobName, LPCWSTR outputFileName, HANDLE progressEvent, HANDLE completionEvent, IXpsPrintJob **xpsPrintJob, IXpsOMPackageTarget **printContentReceiver);")
|
|---|
| 45 |
|
|---|
| 46 | cpp_quote("#endif")
|
|---|
| 47 | cpp_quote("#endif")
|
|---|