ReactOS 0.4.15-dev-7889-g76290a6
winddiui.h
Go to the documentation of this file.
1/*
2 * Header for the Device Driver Interface - User Interface library
3 *
4 * Copyright 2007 Marcel Partap
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#ifndef __WINE_WINDDIUI_H
22#define __WINE_WINDDIUI_H
23
24#include <compstui.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#if (NTDDI_VERSION >= NTDDI_WINXP)
31typedef struct _DOCEVENT_FILTER {
38typedef struct _DOCEVENT_CREATEDCPRE {
44typedef struct _DOCEVENT_ESCAPE {
49#endif
50#define DOCUMENTEVENT_FIRST 1
51#define DOCUMENTEVENT_CREATEDCPRE 1
52#define DOCUMENTEVENT_CREATEDCPOST 2
53#define DOCUMENTEVENT_RESETDCPRE 3
54#define DOCUMENTEVENT_RESETDCPOST 4
55#define DOCUMENTEVENT_STARTDOC 5
56#define DOCUMENTEVENT_STARTDOCPRE 5
57#define DOCUMENTEVENT_STARTPAGE 6
58#define DOCUMENTEVENT_ENDPAGE 7
59#define DOCUMENTEVENT_ENDDOC 8
60#define DOCUMENTEVENT_ENDDOCPRE 8
61#define DOCUMENTEVENT_ABORTDOC 9
62#define DOCUMENTEVENT_DELETEDC 10
63#define DOCUMENTEVENT_ESCAPE 11
64#define DOCUMENTEVENT_ENDDOCPOST 12
65#define DOCUMENTEVENT_STARTDOCPOST 13
66#if (NTDDI_VERSION >= NTDDI_VISTA)
67#define DOCUMENTEVENT_QUERYFILTER 14
68#define DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTSEQUENCEPRE 1
69#define DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTPRE 2
70#define DOCUMENTEVENT_XPS_ADDFIXEDPAGEEPRE 3
71#define DOCUMENTEVENT_XPS_ADDFIXEDPAGEPOST 4
72#define DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTPOST 5
73#define DOCUMENTEVENT_XPS_CANCELJOB 6
74#define DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTSEQUENCEPRINTTICKETPRE 7
75#define DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTPRINTTICKETPRE 8
76#define DOCUMENTEVENT_XPS_ADDFIXEDPAGEPRINTTICKETPRE 9
77#define DOCUMENTEVENT_XPS_ADDFIXEDPAGEPRINTTICKETPOST 10
78#define DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTPRINTTICKETPOST 11
79#define DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTSEQUENCEPRINTTICKETPOST 12
80#define DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTSEQUENCEPOST 13
81#define DOCUMENTEVENT_LAST 15
82#elif (NTDDI_VERSION >= NTDDI_WINXP)
83#define DOCUMENTEVENT_QUERYFILTER 14
84#define DOCUMENTEVENT_LAST 15
85#else
86#define DOCUMENTEVENT_LAST 14
87#endif
88#define DOCUMENTEVENT_SPOOLED 0x10000
89#define DOCUMENTEVENT_SUCCESS 1
90#define DOCUMENTEVENT_UNSUPPORTED 0
91#define DOCUMENTEVENT_FAILURE -1
92#define DOCUMENTEVENT_EVENT(iX) (LOWORD(iX))
93#define DOCUMENTEVENT_FLAGS(iX) (HIWORD(iX))
94
96
97#define DRIVER_EVENT_INITIALIZE 1
98#define DRIVER_EVENT_DELETE 2
99
100#define PRINTER_EVENT_ADD_CONNECTION 1
101#define PRINTER_EVENT_DELETE_CONNECTION 2
102#define PRINTER_EVENT_INITIALIZE 3
103#define PRINTER_EVENT_DELETE 4
104#define PRINTER_EVENT_CACHE_REFRESH 5
105#define PRINTER_EVENT_CACHE_DELETE 6
106#define PRINTER_EVENT_ATTRIBUTES_CHANGED 7
107
108#define PRINTER_EVENT_FLAG_NO_UI 1
109
113
115
116typedef struct _DEVICEPROPERTYHEADER {
122
123#define DPS_NOPERMISSION 0x0001
124
126
137
138#define DM_ADVANCED 0x10
139#define DM_NOPERMISSION 0x20
140#define DM_USER_DEFAULT 0x40
141
142typedef struct _DEVQUERYPRINT_INFO {
151
153
154#ifdef __cplusplus
155} /* extern "C" */
156#endif
157
158#endif /* __WINE_WINDDIUI_H */
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
static HDC
Definition: imagelist.c:92
unsigned int UINT
Definition: ndis.h:50
long LONG
Definition: pedump.c:60
struct _DEVICEPROPERTYHEADER * PDEVICEPROPERTYHEADER
BOOL WINAPI DrvPrinterEvent(LPWSTR, INT, DWORD, LPARAM)
BOOL WINAPI DevQueryPrintEx(PDEVQUERYPRINT_INFO)
Definition: printers.c:636
struct _DEVQUERYPRINT_INFO DEVQUERYPRINT_INFO
struct _DOCEVENT_ESCAPE DOCEVENT_ESCAPE
BOOL WINAPI DrvDriverEvent(DWORD, DWORD, LPBYTE, LPARAM)
struct _DOCEVENT_FILTER * PDOCEVENT_FILTER
LONG WINAPI DrvDevicePropertySheets(PPROPSHEETUI_INFO, LPARAM)
struct _DOCUMENTPROPERTYHEADER DOCUMENTPROPERTYHEADER
struct _DOCEVENT_CREATEDCPRE DOCEVENT_CREATEDCPRE
struct _DOCEVENT_FILTER DOCEVENT_FILTER
struct _DEVICEPROPERTYHEADER DEVICEPROPERTYHEADER
LONG WINAPI DrvDocumentPropertySheets(PPROPSHEETUI_INFO, LPARAM)
int WINAPI DrvDocumentEvent(HANDLE, HDC, int, ULONG, PVOID, ULONG, PVOID)
struct _DOCEVENT_CREATEDCPRE * PDCEVENT_CREATEDCPRE
struct _DOCUMENTPROPERTYHEADER * PDOCUMENTPROPERTYHEADER
struct _DOCEVENT_ESCAPE * PDOCEVENT_ESCAPE
struct _DEVQUERYPRINT_INFO * PDEVQUERYPRINT_INFO
DWORD WINAPI DrvDeviceCapabilities(HANDLE, PWSTR, WORD, PVOID, PDEVMODE)
DEVMODE * pDevMode
Definition: winddiui.h:146
PVOID pvInData
Definition: winddiui.h:47
DWORD aDocEventCall[ANYSIZE_ARRAY]
Definition: winddiui.h:36
UINT cElementsAllocated
Definition: winddiui.h:33
UINT cElementsNeeded
Definition: winddiui.h:34
UINT cElementsReturned
Definition: winddiui.h:35
uint16_t * PWSTR
Definition: typedefs.h:56
#define ANYSIZE_ARRAY
Definition: typedefs.h:46
unsigned char * LPBYTE
Definition: typedefs.h:53
int32_t INT
Definition: typedefs.h:58
uint32_t ULONG
Definition: typedefs.h:59
LONG_PTR LPARAM
Definition: windef.h:208
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184
CHAR * LPTSTR
Definition: xmlstorage.h:192