summaryrefslogtreecommitdiff
path: root/src/wincap/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wincap/errors.h')
-rw-r--r--src/wincap/errors.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/wincap/errors.h b/src/wincap/errors.h
new file mode 100644
index 0000000..8df5b5c
--- /dev/null
+++ b/src/wincap/errors.h
@@ -0,0 +1,33 @@
+/* Header file for errors.c */
+/* Copyright (c) 1991 Microsoft Corporation. All rights reserved. */
+
+enum {
+ ERR_MIN = 0, // All error #s >= this value
+ ERR_NOT_DIB = 0, // Tried to load a file, NOT a DIB!
+ ERR_MEMORY, // Not enough memory!
+ ERR_READ, // Error reading file!
+ ERR_LOCK, // Error on a GlobalLock()!
+ ERR_OPEN, // Error opening a file!
+ ERR_CREATEPAL, // Error creating palette.
+ ERR_GETDC, // Couldn't get a DC.
+ ERR_CREATEDDB, // Error create a DDB.
+ ERR_STRETCHBLT, // StretchBlt() returned failure.
+ ERR_STRETCHDIBITS, // StretchDIBits() returned failure.
+ ERR_SETDIBITSTODEVICE, // SetDIBitsToDevice() failed.
+ ERR_STARTDOC, // Error calling StartDoc().
+ ERR_NOGDIMODULE, // Couldn't find GDI module in memory.
+ ERR_SETABORTPROC, // Error calling SetAbortProc().
+ ERR_STARTPAGE, // Error calling StartPage().
+ ERR_NEWFRAME, // Error calling NEWFRAME escape.
+ ERR_ENDPAGE, // Error calling EndPage().
+ ERR_ENDDOC, // Error calling EndDoc().
+ ERR_SETDIBITS, // Error calling SetDIBits().
+ ERR_FILENOTFOUND, // Error opening file in GetDib()
+ ERR_INVALIDHANDLE, // Invalid Handle
+ ERR_DIBFUNCTION, // Error on call to DIB function
+ ERR_MAX // All error #s < this value
+ };
+
+
+void DIBError (int ErrNo);
+