source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/prntvpt.h@ 1166

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

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

File size: 2.4 KB
Line 
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
15extern "C" {
16#endif
17
18DECLARE_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
30typedef enum tagEDefaultDevmodeType {
31 kUserDefaultDevmode,
32 kPrinterDefaultDevmode
33} EDefaultDevmodeType;
34
35typedef enum {
36 kPTPageScope,
37 kPTDocumentScope,
38 kPTJobScope
39} EPrintTicketScope;
40
41HRESULT WINAPI PTQuerySchemaVersionSupport(PCWSTR pszPrinterName, DWORD *pMaxVersion);
42HRESULT WINAPI PTOpenProvider(PCWSTR pszPrinterName, DWORD dwVersion, HPTPROVIDER *phProvider);
43HRESULT WINAPI PTOpenProviderEx(PCWSTR pszPrinterName, DWORD dwMaxVersion, DWORD dwPrefVersion, HPTPROVIDER *phProvider, DWORD *pUsedVersion);
44HRESULT WINAPI PTCloseProvider(HPTPROVIDER hProvider);
45HRESULT WINAPI PTReleaseMemory(PVOID pBuffer);
46HRESULT WINAPI PTGetPrintCapabilities(HPTPROVIDER hProvider, IStream *pPrintTicket, IStream *pCapabilities, BSTR *pbstrErrorMessage);
47HRESULT WINAPI PTGetPrintDeviceCapabilities(HPTPROVIDER hProvider, IStream *pPrintTicket, IStream *pDeviceCapabilities, BSTR *pbstrErrorMessage);
48HRESULT WINAPI PTGetPrintDeviceResources(HPTPROVIDER hProvider, LPCWSTR pszLocaleName, IStream *pPrintTicket, IStream *pDeviceResources, BSTR *pbstrErrorMessage);
49HRESULT WINAPI PTMergeAndValidatePrintTicket(HPTPROVIDER hProvider, IStream *pBaseTicket, IStream *pDeltaTicket, EPrintTicketScope scope, IStream *pResultTicket, BSTR *pbstrErrorMessage);
50HRESULT WINAPI PTConvertPrintTicketToDevMode(HPTPROVIDER hProvider, IStream *pPrintTicket, EDefaultDevmodeType baseDevmodeType, EPrintTicketScope scope, ULONG *pcbDevmode, PDEVMODE *ppDevmode, BSTR *pbstrErrorMessage);
51HRESULT 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_ */
Note: See TracBrowser for help on using the repository browser.