source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/documenttarget.idl

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

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

File size: 2.9 KB
Line 
1cpp_quote("/**")
2cpp_quote(" * This file is part of the mingw-w64 runtime package.")
3cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.")
4cpp_quote(" */")
5
6import "oaidl.idl";
7import "ocidl.idl";
8
9cpp_quote("")
10cpp_quote("#include <winapifamily.h>")
11cpp_quote("")
12cpp_quote("DEFINE_GUID (ID_DOCUMENTPACKAGETARGET_MSXPS, 0x9cae40a8, 0xded1, 0x41c9, 0xa9, 0xfd, 0xd7, 0x35, 0xef, 0x33, 0xae, 0xda);")
13cpp_quote("DEFINE_GUID (ID_DOCUMENTPACKAGETARGET_OPENXPS, 0x0056bb72, 0x8c9c, 0x4612, 0xbd, 0x0f, 0x93, 0x01, 0x2a, 0x87, 0x09, 0x9d);")
14cpp_quote("")
15cpp_quote("#if NTDDI_VERSION >= 0x06010000")
16cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
17[object, uuid (1b8efec4-3019-4c27-964e-367202156906)]
18interface IPrintDocumentPackageTarget : IUnknown {
19 HRESULT GetPackageTargetTypes ([out] UINT32 *targetCount,[out, size_is (,*targetCount)] GUID **targetTypes);
20 HRESULT GetPackageTarget ([in] REFGUID guidTargetType,[in] REFIID riid,[out, iid_is (riid)] void **ppvTarget);
21 HRESULT Cancel ();
22};
23cpp_quote("#endif")
24cpp_quote("")
25cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
26typedef [v1_enum] enum PrintDocumentPackageCompletion {
27 PrintDocumentPackageCompletion_InProgress = 0,
28 PrintDocumentPackageCompletion_Completed,
29 PrintDocumentPackageCompletion_Canceled,
30 PrintDocumentPackageCompletion_Failed
31} PrintDocumentPackageCompletion;
32
33typedef struct {
34 UINT32 JobId;
35 INT32 CurrentDocument;
36 INT32 CurrentPage;
37 INT32 CurrentPageTotal;
38 PrintDocumentPackageCompletion Completion;
39 HRESULT PackageStatus;
40} PrintDocumentPackageStatus;
41
42[object, uuid (ed90c8ad-5c34-4d05-a1ec-0e8a9b3ad7af), dual, nonextensible]
43interface IPrintDocumentPackageStatusEvent : IDispatch {
44 [id (1)] HRESULT PackageStatusUpdated ([in] PrintDocumentPackageStatus *packageStatus);
45};
46
47[object, uuid (d2959bf7-b31b-4a3d-9600-712eb1335ba4)]
48interface IPrintDocumentPackageTargetFactory : IUnknown {
49 HRESULT CreateDocumentPackageTargetForPrintJob ([in, string] LPCWSTR printerName,[in, string] LPCWSTR jobName,[in] IStream *jobOutputStream,[in] IStream *jobPrintTicketStream,[out] IPrintDocumentPackageTarget **docPackageTarget);
50};
51cpp_quote("#endif")
52
53[uuid (410d76f7-8bb5-4a7d-9d37-9c71b1b14d14), version (1.0)]
54library PrintDocumentTargetLib {
55cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
56 interface IPrintDocumentPackageTarget;
57cpp_quote("#endif")
58cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
59 interface IPrintDocumentPackageStatusEvent;
60 interface IPrintDocumentPackageTargetFactory;
61
62 [uuid (4842669e-9947-46ea-8ba2-d8cce432c2ca), noncreatable]
63 coclass PrintDocumentPackageTarget {
64 [default] interface IPrintDocumentPackageTarget;
65 [source] dispinterface IPrintDocumentPackageStatusEvent;
66 };
67
68 [uuid (348ef17d-6c81-4982-92b4-ee188a43867a)]
69 coclass PrintDocumentPackageTargetFactory {
70 [default] interface IPrintDocumentPackageTargetFactory;
71 };
72 cpp_quote("#endif")
73};
74
75cpp_quote("#endif")
Note: See TracBrowser for help on using the repository browser.