ReactOS 0.4.16-dev-297-gc569aee
dciddi.h
Go to the documentation of this file.
1
6#ifndef _INC_DCIDDI
7#define _INC_DCIDDI
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define DCICOMMAND 3075
14#define DCI_VERSION 0x0100
15
16#define DCICREATEPRIMARYSURFACE 1
17#define DCICREATEOFFSCREENSURFACE 2
18#define DCICREATEOVERLAYSURFACE 3
19#define DCIENUMSURFACE 4
20#define DCIESCAPE 5
21
22#define DCI_OK 0
23#define DCI_FAIL_GENERIC -1
24#define DCI_FAIL_UNSUPPORTEDVERSION -2
25#define DCI_FAIL_INVALIDSURFACE -3
26#define DCI_FAIL_UNSUPPORTED -4
27
28#define DCI_ERR_CURRENTLYNOTAVAIL -5
29#define DCI_ERR_INVALIDRECT -6
30#define DCI_ERR_UNSUPPORTEDFORMAT -7
31#define DCI_ERR_UNSUPPORTEDMASK -8
32#define DCI_ERR_TOOBIGHEIGHT -9
33#define DCI_ERR_TOOBIGWIDTH -10
34#define DCI_ERR_TOOBIGSIZE -11
35#define DCI_ERR_OUTOFMEMORY -12
36#define DCI_ERR_INVALIDPOSITION -13
37#define DCI_ERR_INVALIDSTRETCH -14
38#define DCI_ERR_INVALIDCLIPLIST -15
39#define DCI_ERR_SURFACEISOBSCURED -16
40#define DCI_ERR_XALIGN -17
41#define DCI_ERR_YALIGN -18
42#define DCI_ERR_XYALIGN -19
43#define DCI_ERR_WIDTHALIGN -20
44#define DCI_ERR_HEIGHTALIGN -21
45
46#define DCI_STATUS_POINTERCHANGED 1
47#define DCI_STATUS_STRIDECHANGED 2
48#define DCI_STATUS_FORMATCHANGED 4
49#define DCI_STATUS_SURFACEINFOCHANGED 8
50#define DCI_STATUS_CHROMAKEYCHANGED 16
51#define DCI_STATUS_WASSTILLDRAWING 32
52
53#define DCI_SUCCESS(error) (((DCIRVAL)error) >= 0)
54
55#define DCI_SURFACE_TYPE 0x0000000F
56#define DCI_PRIMARY 0x00000000
57#define DCI_OFFSCREEN 0x00000001
58#define DCI_OVERLAY 0x00000002
59#define DCI_VISIBLE 0x00000010
60#define DCI_CHROMAKEY 0x00000020
61#define DCI_1632_ACCESS 0x00000040
62#define DCI_DWORDSIZE 0x00000080
63#define DCI_DWORDALIGN 0x00000100
64#define DCI_WRITEONLY 0x00000200
65#define DCI_ASYNC 0x00000400
66
67#define DCI_CAN_STRETCHX 0x00001000
68#define DCI_CAN_STRETCHY 0x00002000
69#define DCI_CAN_STRETCHXY (DCI_CAN_STRETCHX | DCI_CAN_STRETCHY)
70
71#define DCI_CAN_STRETCHXN 0x00004000
72#define DCI_CAN_STRETCHYN 0x00008000
73#define DCI_CAN_STRETCHXYN (DCI_CAN_STRETCHXN | DCI_CAN_STRETCHYN)
74
75#define DCI_CANOVERLAY 0x00010000
76
77 typedef int DCIRVAL;
78
79 typedef struct _DCICMD {
86
87 typedef struct _DCICREATEINPUT {
97
98 typedef struct _DCISURFACEINFO {
113 DCIRVAL (CALLBACK *BeginAccess) (LPVOID,LPRECT);
114 void (CALLBACK *EndAccess) (LPVOID);
115 void (CALLBACK *DestroySurface) (LPVOID);
117
118 typedef void (*ENUM_CALLBACK)(LPDCISURFACEINFO lpSurfaceInfo,LPVOID lpContext);
119
120 typedef struct _DCIENUMINPUT {
127
129
130 typedef struct _DCIOFFSCREEN {
134 DCIRVAL (CALLBACK *SetDestination) (LPVOID,LPRECT,LPRECT);
136
137 typedef struct _DCIOVERLAY {
142
143#ifndef YVU9
144#define YVU9 mmioFOURCC('Y','V','U','9')
145#endif
146#ifndef Y411
147#define Y411 mmioFOURCC('Y','4','1','1')
148#endif
149#ifndef YUY2
150#define YUY2 mmioFOURCC('Y','U','Y','2')
151#endif
152#ifndef YVYU
153#define YVYU mmioFOURCC('Y','V','Y','U')
154#endif
155#ifndef UYVY
156#define UYVY mmioFOURCC('U','Y','V','Y')
157#endif
158#ifndef Y211
159#define Y211 mmioFOURCC('Y','2','1','1')
160#endif
161
162#ifdef __cplusplus
163}
164#endif
165#endif
struct _DCIOVERLAY * LPDCIOVERLAY
struct _DCISURFACEINFO * LPDCISURFACEINFO
void(* ENUM_CALLBACK)(LPDCISURFACEINFO lpSurfaceInfo, LPVOID lpContext)
Definition: dciddi.h:118
DCISURFACEINFO DCIPRIMARY
Definition: dciddi.h:128
struct _DCIOFFSCREEN * LPDCIOFFSCREEN
DCISURFACEINFO * LPDCIPRIMARY
Definition: dciddi.h:128
struct _DCIOFFSCREEN DCIOFFSCREEN
struct _DCIENUMINPUT * LPDCIENUMINPUT
struct _DCISURFACEINFO DCISURFACEINFO
struct _DCIENUMINPUT DCIENUMINPUT
int DCIRVAL
Definition: dciddi.h:77
struct _DCIOVERLAY DCIOVERLAY
struct _DCICMD DCICMD
struct _DCICREATEINPUT DCICREATEINPUT
struct _DCICREATEINPUT * LPDCICREATEINPUT
static HRESULT CALLBACK EnumCallback(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *surface_desc, void *context)
Definition: surface.c:2903
#define CALLBACK
Definition: compat.h:35
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
void Draw(HDC aDc)
Definition: magnifier.c:359
#define LPVOID
Definition: nt_native.h:45
long LONG
Definition: pedump.c:60
Definition: dciddi.h:79
DWORD dwVersion
Definition: dciddi.h:83
DWORD dwReserved
Definition: dciddi.h:84
DWORD dwParam1
Definition: dciddi.h:81
DWORD dwCommand
Definition: dciddi.h:80
DWORD dwParam2
Definition: dciddi.h:82
DWORD dwWidth
Definition: dciddi.h:91
LPVOID lpSurface
Definition: dciddi.h:95
DWORD dwHeight
Definition: dciddi.h:92
DWORD dwMask[3]
Definition: dciddi.h:90
DWORD dwDCICaps
Definition: dciddi.h:93
DWORD dwCompression
Definition: dciddi.h:89
DWORD dwBitCount
Definition: dciddi.h:94
DCICMD cmd
Definition: dciddi.h:88
RECT rDst
Definition: dciddi.h:123
LPVOID lpContext
Definition: dciddi.h:125
RECT rSrc
Definition: dciddi.h:122
DCICMD cmd
Definition: dciddi.h:121
DCISURFACEINFO dciInfo
Definition: dciddi.h:131
DCIRVAL(CALLBACK *Draw)(LPVOID)
DCIRVAL(CALLBACK *SetDestination)(LPVOID
DCIRVAL(CALLBACK *SetClipList)(LPVOID
DCISURFACEINFO dciInfo
Definition: dciddi.h:138
DWORD dwChromakeyValue
Definition: dciddi.h:139
DWORD dwChromakeyMask
Definition: dciddi.h:140
ULONG_PTR dwOffSurface
Definition: dciddi.h:107
DCIRVAL(CALLBACK *BeginAccess)(LPVOID
DWORD dwReserved2
Definition: dciddi.h:111
DWORD dwMask[3]
Definition: dciddi.h:102
void(CALLBACK *EndAccess)(LPVOID)
void(CALLBACK *DestroySurface)(LPVOID)
DWORD dwHeight
Definition: dciddi.h:104
DWORD dwDCICaps
Definition: dciddi.h:100
DWORD dwCompression
Definition: dciddi.h:101
WORD wSelSurface
Definition: dciddi.h:108
DWORD dwBitCount
Definition: dciddi.h:106
DWORD dwReserved1
Definition: dciddi.h:110
WORD wReserved
Definition: dciddi.h:109
DWORD dwSize
Definition: dciddi.h:99
DWORD dwWidth
Definition: dciddi.h:103
DWORD dwReserved3
Definition: dciddi.h:112
LONG lStride
Definition: dciddi.h:105
uint32_t ULONG_PTR
Definition: typedefs.h:65