Commit 23e69644 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

prntvpt: Implement PTConvertPrintTicketToDevMode.

parent 899e4dae
MODULE = prntvpt.dll
IMPORTLIB = prntvpt
IMPORTS = winspool
IMPORTS = winspool ole32 oleaut32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
main.c
main.c \
ticket.c
......@@ -24,6 +24,7 @@
#include "winbase.h"
#include "wingdi.h"
#include "winspool.h"
#include "objbase.h"
#include "prntvpt.h"
#include "wine/heap.h"
#include "wine/debug.h"
......
......@@ -5,7 +5,7 @@
@ stub BindPTProviderThunk
@ stub PTGetPrintCapabilities
@ stub PTMergeAndValidatePrintTicket
@ stub PTConvertPrintTicketToDevMode
@ stdcall PTConvertPrintTicketToDevMode(ptr ptr long long ptr ptr ptr)
@ stub PTConvertDevModeToPrintTicket
@ stdcall PTReleaseMemory(ptr)
@ stub ConvertDevModeToPrintTicketThunk2
......
......@@ -25,9 +25,25 @@ extern "C" {
DECLARE_HANDLE(HPTPROVIDER);
#define E_PRINTTICKET_FORMAT 0x80040003
typedef enum
{
kPTPageScope,
kPTDocumentScope,
kPTJobScope
} EPrintTicketScope;
typedef enum
{
kUserDefaultDevmode,
kPrinterDefaultDevmode
} EDefaultDevmodeType;
HRESULT WINAPI PTOpenProvider(const WCHAR *printer, DWORD version, HPTPROVIDER *provider);
HRESULT WINAPI PTOpenProviderEx(const WCHAR *printer, DWORD max_version, DWORD pref_version, HPTPROVIDER *provider, DWORD *used_version);
HRESULT WINAPI PTCloseProvider(HPTPROVIDER);
HRESULT WINAPI PTConvertPrintTicketToDevMode(HPTPROVIDER, IStream *, EDefaultDevmodeType, EPrintTicketScope, ULONG *, PDEVMODEW *, BSTR *);
HRESULT WINAPI PTReleaseMemory(PVOID);
#ifdef __cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment