user32/tests: Account for some messages from dual-monitor setups.
[wine.git] / include / documenttarget.idl
bloba1cbbd939f4a6544bf7f189e233af1dcf5e9f6e9
1 /*
2 * Copyright 2021 Nikolay Sivov for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 import "oaidl.idl";
22 object,
23 uuid(1b8efec4-3019-4c27-964e-367202156906),
25 interface IPrintDocumentPackageTarget : IUnknown
27 HRESULT GetPackageTargetTypes(
28 [out] UINT32 *targetCount,
29 [out, size_is(, *targetCount)] GUID **targetTypes
32 HRESULT GetPackageTarget(
33 [in] REFGUID guidTargetType,
34 [in] REFIID riid,
35 [out, iid_is(riid)] void **ppvTarget
38 HRESULT Cancel();
41 typedef [v1_enum] enum PrintDocumentPackageCompletion
43 PrintDocumentPackageCompletion_InProgress,
44 PrintDocumentPackageCompletion_Completed,
45 PrintDocumentPackageCompletion_Canceled,
46 PrintDocumentPackageCompletion_Failed
47 } PrintDocumentPackageCompletion;
49 typedef struct
51 UINT32 JobId;
52 INT32 CurrentDocument;
53 INT32 CurrentPage;
54 INT32 CurrentPageTotal;
55 PrintDocumentPackageCompletion Completion;
56 HRESULT PackageStatus;
57 } PrintDocumentPackageStatus;
60 object,
61 dual,
62 nonextensible,
63 uuid(ed90c8ad-5c34-4d05-a1ec-0e8a9b3ad7af),
65 interface IPrintDocumentPackageStatusEvent : IDispatch
67 [id(1)]
68 HRESULT PackageStatusUpdated(
69 [in] PrintDocumentPackageStatus *packageStatus
74 object,
75 uuid(d2959bf7-b31b-4a3d-9600-712eb1335ba4),
77 interface IPrintDocumentPackageTargetFactory : IUnknown
79 HRESULT CreateDocumentPackageTargetForPrintJob(
80 [in, string] LPCWSTR printerName,
81 [in, string] LPCWSTR jobName,
82 [in] IStream *jobOutputStream,
83 [in] IStream *jobPrintTicketStream,
84 [out] IPrintDocumentPackageTarget **docPackageTarget
89 version(1.0),
90 uuid(410d76f7-8bb5-4a7d-9d37-9c71b1b14d14),
92 library PrintDocumentTargetLib
96 noncreatable,
97 uuid(4842669e-9947-46ea-8ba2-d8cce432c2ca),
99 coclass PrintDocumentPackageTarget
101 [default] interface IPrintDocumentPackageTarget;
102 [source] dispinterface IPrintDocumentPackageStatusEvent;
106 uuid(348ef17d-6c81-4982-92b4-ee188a43867a)
108 coclass PrintDocumentPackageTargetFactory
110 [default] interface IPrintDocumentPackageTargetFactory;
113 } /* library */
115 cpp_quote("DEFINE_GUID(ID_DOCUMENTPACKAGETARGET_MSXPS, 0x9cae40a8, 0xded1, 0x41c9, 0xa9, 0xfd, 0xd7, 0x35, 0xef, 0x33, 0xae, 0xda);")
116 cpp_quote("DEFINE_GUID(ID_DOCUMENTPACKAGETARGET_OPENXPS, 0x0056bb72, 0x8c9c, 0x4612, 0xbd, 0x0f, 0x93, 0x01, 0x2a, 0x87, 0x09, 0x9d);")
117 cpp_quote("DEFINE_GUID(ID_DOCUMENTPACKAGETARGET_OPENXPS_WITH_3D, 0x63dbd720, 0x8b14, 0x4577, 0xb0, 0x74, 0x7b, 0xb1, 0x1b, 0x59, 0x6d, 0x28);")