| 1 | cpp_quote("/**") | 
 
 
 
 
 | 2 | cpp_quote(" * This file is part of the mingw-w64 runtime package.") | 
 
 
 
 
 | 3 | cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.") | 
 
 
 
 
 | 4 | cpp_quote(" */") | 
 
 
 
 
 | 5 |  | 
 
 
 
 
 | 6 | import "oaidl.idl"; | 
 
 
 
 
 | 7 | import "ocidl.idl"; | 
 
 
 
 
 | 8 |  | 
 
 
 
 
 | 9 | cpp_quote("") | 
 
 
 
 
 | 10 | cpp_quote("#include <winapifamily.h>") | 
 
 
 
 
 | 11 | cpp_quote("") | 
 
 
 
 
 | 12 | cpp_quote("DEFINE_GUID (ID_DOCUMENTPACKAGETARGET_MSXPS, 0x9cae40a8, 0xded1, 0x41c9, 0xa9, 0xfd, 0xd7, 0x35, 0xef, 0x33, 0xae, 0xda);") | 
 
 
 
 
 | 13 | cpp_quote("DEFINE_GUID (ID_DOCUMENTPACKAGETARGET_OPENXPS, 0x0056bb72, 0x8c9c, 0x4612, 0xbd, 0x0f, 0x93, 0x01, 0x2a, 0x87, 0x09, 0x9d);") | 
 
 
 
 
 | 14 | cpp_quote("") | 
 
 
 
 
 | 15 | cpp_quote("#if NTDDI_VERSION >= 0x06010000") | 
 
 
 
 
 | 16 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") | 
 
 
 
 
 | 17 | [object, uuid (1b8efec4-3019-4c27-964e-367202156906)] | 
 
 
 
 
 | 18 | interface 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 | }; | 
 
 
 
 
 | 23 | cpp_quote("#endif") | 
 
 
 
 
 | 24 | cpp_quote("") | 
 
 
 
 
 | 25 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") | 
 
 
 
 
 | 26 | typedef [v1_enum] enum PrintDocumentPackageCompletion { | 
 
 
 
 
 | 27 | PrintDocumentPackageCompletion_InProgress = 0, | 
 
 
 
 
 | 28 | PrintDocumentPackageCompletion_Completed, | 
 
 
 
 
 | 29 | PrintDocumentPackageCompletion_Canceled, | 
 
 
 
 
 | 30 | PrintDocumentPackageCompletion_Failed | 
 
 
 
 
 | 31 | } PrintDocumentPackageCompletion; | 
 
 
 
 
 | 32 |  | 
 
 
 
 
 | 33 | typedef 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] | 
 
 
 
 
 | 43 | interface IPrintDocumentPackageStatusEvent : IDispatch { | 
 
 
 
 
 | 44 | [id (1)] HRESULT PackageStatusUpdated ([in] PrintDocumentPackageStatus *packageStatus); | 
 
 
 
 
 | 45 | }; | 
 
 
 
 
 | 46 |  | 
 
 
 
 
 | 47 | [object, uuid (d2959bf7-b31b-4a3d-9600-712eb1335ba4)] | 
 
 
 
 
 | 48 | interface IPrintDocumentPackageTargetFactory : IUnknown { | 
 
 
 
 
 | 49 | HRESULT CreateDocumentPackageTargetForPrintJob ([in, string] LPCWSTR printerName,[in, string] LPCWSTR jobName,[in] IStream *jobOutputStream,[in] IStream *jobPrintTicketStream,[out] IPrintDocumentPackageTarget **docPackageTarget); | 
 
 
 
 
 | 50 | }; | 
 
 
 
 
 | 51 | cpp_quote("#endif") | 
 
 
 
 
 | 52 |  | 
 
 
 
 
 | 53 | [uuid (410d76f7-8bb5-4a7d-9d37-9c71b1b14d14), version (1.0)] | 
 
 
 
 
 | 54 | library PrintDocumentTargetLib { | 
 
 
 
 
 | 55 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") | 
 
 
 
 
 | 56 | interface IPrintDocumentPackageTarget; | 
 
 
 
 
 | 57 | cpp_quote("#endif") | 
 
 
 
 
 | 58 | cpp_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 |  | 
 
 
 
 
 | 75 | cpp_quote("#endif") |