Release 0.5
[wine] / include / dce.h
1 /*
2  * USER DCE definitions
3  *
4  * Copyright 1993 Alexandre Julliard
5  */
6
7 #ifndef DCE_H
8 #define DCE_H
9
10 #include "windows.h"
11
12 typedef enum
13 {
14     DCE_CACHE_DC,   /* This is a cached DC (allocated by USER) */
15     DCE_CLASS_DC,   /* This is a class DC (style CS_CLASSDC) */
16     DCE_WINDOW_DC   /* This is a window DC (style CS_OWNDC) */
17 } DCE_TYPE;
18
19
20 typedef struct tagDCE
21 {
22     HANDLE     hNext;
23     HWND       hwndCurrent;
24     HDC        hdc;
25     DCE_TYPE   type;
26     BOOL       inUse;
27     WORD       xOrigin;
28     WORD       yOrigin;
29 } DCE;
30
31
32 extern HANDLE DCE_AllocDCE( DCE_TYPE type );
33 extern void DCE_FreeDCE( HANDLE hdce );
34
35 #endif  /* DCE_H */