Fix the DCICreatePrimary() prototype. It's supposed to return an int
so have it return DCI_FAIL_UNSUPPORTED.
Add the needed error codes and the DCISURFACEINFO definition to
dciddi.h.
Add dciman.h and put the function prototypes there.
dciddi.h and dciman.h should be installed with the other Windows
headers.
diff --git a/include/dciddi.h b/include/dciddi.h
index c5708e2..54b5521 100644
--- a/include/dciddi.h
+++ b/include/dciddi.h
@@ -36,7 +36,11 @@
#define DCIESCAPE 5
/* DCI Errors */
-#define DCI_OK 0
+#define DCI_OK 0
+#define DCI_FAIL_GENERIC -1
+#define DCI_FAIL_UNSUPPORTEDVERSION -2
+#define DCI_FAIL_INVALIDSURFACE -3
+#define DCI_FAIL_UNSUPPORTED -4
typedef int DCIRVAL; /* DCI callback return type */
@@ -52,6 +56,26 @@
DWORD dwReserved;
} DCICMD,*LPDCICMD;
+typedef struct _DCISURFACEINFO {
+ DWORD dwSize;
+ DWORD dwDCICaps;
+ DWORD dwCompression;
+ DWORD dwMask[3];
+ DWORD dwWidth;
+ DWORD dwHeight;
+ LONG lStride;
+ DWORD dwBitCount;
+ ULONG_PTR dwOffSurface;
+ WORD wSelSurface;
+ WORD wReserved;
+ DWORD dwReserved1;
+ DWORD dwReserved2;
+ DWORD dwReserved3;
+ DCIRVAL (CALLBACK *BeginAccess)(LPVOID, LPRECT);
+ void (CALLBACK *EndAccess)(LPVOID);
+ void (CALLBACK *DestroySurface)(LPVOID);
+} DCISURFACEINFO, *LPDCISURFACEINFO;
+
#ifdef __cplusplus
} /* extern "C" */
#endif