Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * DCI driver interface |
| 3 | * |
| 4 | * Copyright (C) 2001 Ove Kaaven |
| 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 |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 19 | */ |
Ove Kaaven | 0dae899 | 2001-02-13 20:24:16 +0000 | [diff] [blame] | 20 | |
| 21 | #ifndef __WINE_DCIDDI_H |
| 22 | #define __WINE_DCIDDI_H |
| 23 | |
| 24 | #ifdef __cplusplus |
| 25 | extern "C" { |
| 26 | #endif |
| 27 | |
| 28 | /* DCI Command Escape */ |
| 29 | #define DCICOMMAND 3075 |
| 30 | #define DCI_VERSION 0x0100 |
| 31 | |
| 32 | #define DCICREATEPRIMARYSURFACE 1 |
| 33 | #define DCICREATEOFFSCREENSURFACE 2 |
| 34 | #define DCICREATEOVERLAYSURFACE 3 |
| 35 | #define DCIENUMSURFACE 4 |
| 36 | #define DCIESCAPE 5 |
| 37 | |
| 38 | /* DCI Errors */ |
Francois Gouget | 30a07e9 | 2005-04-20 18:42:04 +0000 | [diff] [blame] | 39 | #define DCI_OK 0 |
| 40 | #define DCI_FAIL_GENERIC -1 |
| 41 | #define DCI_FAIL_UNSUPPORTEDVERSION -2 |
| 42 | #define DCI_FAIL_INVALIDSURFACE -3 |
| 43 | #define DCI_FAIL_UNSUPPORTED -4 |
Ove Kaaven | 0dae899 | 2001-02-13 20:24:16 +0000 | [diff] [blame] | 44 | |
| 45 | |
| 46 | typedef int DCIRVAL; /* DCI callback return type */ |
| 47 | |
| 48 | /***************************************************************************** |
| 49 | * Escape command structures |
| 50 | */ |
| 51 | typedef struct _DCICMD { |
| 52 | DWORD dwCommand; |
| 53 | DWORD dwParam1; |
| 54 | DWORD dwParam2; |
| 55 | DWORD dwVersion; |
| 56 | DWORD dwReserved; |
| 57 | } DCICMD,*LPDCICMD; |
| 58 | |
Francois Gouget | 30a07e9 | 2005-04-20 18:42:04 +0000 | [diff] [blame] | 59 | typedef struct _DCISURFACEINFO { |
| 60 | DWORD dwSize; |
| 61 | DWORD dwDCICaps; |
| 62 | DWORD dwCompression; |
| 63 | DWORD dwMask[3]; |
| 64 | DWORD dwWidth; |
| 65 | DWORD dwHeight; |
| 66 | LONG lStride; |
| 67 | DWORD dwBitCount; |
| 68 | ULONG_PTR dwOffSurface; |
| 69 | WORD wSelSurface; |
| 70 | WORD wReserved; |
| 71 | DWORD dwReserved1; |
| 72 | DWORD dwReserved2; |
| 73 | DWORD dwReserved3; |
| 74 | DCIRVAL (CALLBACK *BeginAccess)(LPVOID, LPRECT); |
| 75 | void (CALLBACK *EndAccess)(LPVOID); |
| 76 | void (CALLBACK *DestroySurface)(LPVOID); |
| 77 | } DCISURFACEINFO, *LPDCISURFACEINFO; |
| 78 | |
Ove Kaaven | 0dae899 | 2001-02-13 20:24:16 +0000 | [diff] [blame] | 79 | #ifdef __cplusplus |
| 80 | } /* extern "C" */ |
| 81 | #endif |
| 82 | |
| 83 | #endif /* __WINE_DCIDDI_H */ |