source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/xpsprint.idl@ 1186

Last change on this file since 1186 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 1.6 KB
RevLine 
[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
6import "objidl.idl";
7import "oaidl.idl";
8import "ocidl.idl";
9import "xpsobjectmodel.idl";
10
11cpp_quote("#include <winapifamily.h>")
12cpp_quote("")
13cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
14cpp_quote("#if NTDDI_VERSION >= 0x06010000")
15
16typedef 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
23typedef 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)]
33interface IXpsPrintJobStream : ISequentialStream {
34 [local] HRESULT Close ();
35}
36
37[object, uuid (5ab89b06-8194-425f-ab3b-d7a96e350161), pointer_default (unique)]
38interface IXpsPrintJob : IUnknown {
39 [local] HRESULT Cancel ();
40 [local] HRESULT GetJobStatus ([out, retval] XPS_JOB_STATUS *jobStatus);
41}
42
43cpp_quote("HRESULT WINAPI StartXpsPrintJob (LPCWSTR printerName, LPCWSTR jobName, LPCWSTR outputFileName, HANDLE progressEvent, HANDLE completionEvent, UINT8 *printablePagesOn, UINT32 printablePagesOnCount, IXpsPrintJob **xpsPrintJob, IXpsPrintJobStream **documentStream, IXpsPrintJobStream **printTicketStream);")
44cpp_quote("HRESULT WINAPI StartXpsPrintJob1 (LPCWSTR printerName, LPCWSTR jobName, LPCWSTR outputFileName, HANDLE progressEvent, HANDLE completionEvent, IXpsPrintJob **xpsPrintJob, IXpsOMPackageTarget **printContentReceiver);")
45
46cpp_quote("#endif")
47cpp_quote("#endif")
Note: See TracBrowser for help on using the repository browser.