[1166] | 1 | /**
|
---|
| 2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
| 3 | * This file is part of the mingw-w64 runtime package.
|
---|
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
| 5 | */
|
---|
| 6 |
|
---|
| 7 | #ifndef _PRNPTNTV_H_
|
---|
| 8 | #define _PRNPTNTV_H_
|
---|
| 9 |
|
---|
| 10 | #include <winapifamily.h>
|
---|
| 11 |
|
---|
| 12 | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
---|
| 13 |
|
---|
| 14 | #ifdef __cplusplus
|
---|
| 15 | extern "C" {
|
---|
| 16 | #endif
|
---|
| 17 |
|
---|
| 18 | DECLARE_HANDLE(HPTPROVIDER);
|
---|
| 19 |
|
---|
| 20 | #define PRINTTICKET_ISTREAM_APIS 1
|
---|
| 21 |
|
---|
| 22 | #define S_PT_NO_CONFLICT 0x00040001
|
---|
| 23 | #define S_PT_CONFLICT_RESOLVED 0x00040002
|
---|
| 24 |
|
---|
| 25 | #define E_PRINTTICKET_FORMAT 0x80040003
|
---|
| 26 | #define E_PRINTCAPABILITIES_FORMAT 0x80040004
|
---|
| 27 | #define E_DELTA_PRINTTICKET_FORMAT 0x80040005
|
---|
| 28 | #define E_PRINTDEVICECAPABILITIES_FORMAT 0x80040006
|
---|
| 29 |
|
---|
| 30 | typedef enum tagEDefaultDevmodeType {
|
---|
| 31 | kUserDefaultDevmode,
|
---|
| 32 | kPrinterDefaultDevmode
|
---|
| 33 | } EDefaultDevmodeType;
|
---|
| 34 |
|
---|
| 35 | typedef enum {
|
---|
| 36 | kPTPageScope,
|
---|
| 37 | kPTDocumentScope,
|
---|
| 38 | kPTJobScope
|
---|
| 39 | } EPrintTicketScope;
|
---|
| 40 |
|
---|
| 41 | HRESULT WINAPI PTQuerySchemaVersionSupport(PCWSTR pszPrinterName, DWORD *pMaxVersion);
|
---|
| 42 | HRESULT WINAPI PTOpenProvider(PCWSTR pszPrinterName, DWORD dwVersion, HPTPROVIDER *phProvider);
|
---|
| 43 | HRESULT WINAPI PTOpenProviderEx(PCWSTR pszPrinterName, DWORD dwMaxVersion, DWORD dwPrefVersion, HPTPROVIDER *phProvider, DWORD *pUsedVersion);
|
---|
| 44 | HRESULT WINAPI PTCloseProvider(HPTPROVIDER hProvider);
|
---|
| 45 | HRESULT WINAPI PTReleaseMemory(PVOID pBuffer);
|
---|
| 46 | HRESULT WINAPI PTGetPrintCapabilities(HPTPROVIDER hProvider, IStream *pPrintTicket, IStream *pCapabilities, BSTR *pbstrErrorMessage);
|
---|
| 47 | HRESULT WINAPI PTGetPrintDeviceCapabilities(HPTPROVIDER hProvider, IStream *pPrintTicket, IStream *pDeviceCapabilities, BSTR *pbstrErrorMessage);
|
---|
| 48 | HRESULT WINAPI PTGetPrintDeviceResources(HPTPROVIDER hProvider, LPCWSTR pszLocaleName, IStream *pPrintTicket, IStream *pDeviceResources, BSTR *pbstrErrorMessage);
|
---|
| 49 | HRESULT WINAPI PTMergeAndValidatePrintTicket(HPTPROVIDER hProvider, IStream *pBaseTicket, IStream *pDeltaTicket, EPrintTicketScope scope, IStream *pResultTicket, BSTR *pbstrErrorMessage);
|
---|
| 50 | HRESULT WINAPI PTConvertPrintTicketToDevMode(HPTPROVIDER hProvider, IStream *pPrintTicket, EDefaultDevmodeType baseDevmodeType, EPrintTicketScope scope, ULONG *pcbDevmode, PDEVMODE *ppDevmode, BSTR *pbstrErrorMessage);
|
---|
| 51 | HRESULT WINAPI PTConvertDevModeToPrintTicket(HPTPROVIDER hProvider, ULONG cbDevmode, PDEVMODE pDevmode, EPrintTicketScope scope, IStream *pPrintTicket);
|
---|
| 52 |
|
---|
| 53 | #ifdef __cplusplus
|
---|
| 54 | }
|
---|
| 55 | #endif
|
---|
| 56 |
|
---|
| 57 | #endif /* WINAPI_PARTITION_DESKTOP */
|
---|
| 58 |
|
---|
| 59 | #endif /* _PRNPTNTV_H_ */
|
---|