summaryrefslogtreecommitdiffstats
path: root/dxsdk/Include/errors.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-06-02 05:00:38 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-06-02 05:00:38 +0200
commitb1f9e28cd155459ab2843690c248ed9f4767bc3f (patch)
tree8e7d2a33d4c5109ea3c3562940268afc57d0915c /dxsdk/Include/errors.h
parentrw skeleton (diff)
downloadre3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.gz
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.bz2
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.lz
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.xz
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.tar.zst
re3-b1f9e28cd155459ab2843690c248ed9f4767bc3f.zip
Diffstat (limited to 'dxsdk/Include/errors.h')
-rw-r--r--dxsdk/Include/errors.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/dxsdk/Include/errors.h b/dxsdk/Include/errors.h
new file mode 100644
index 00000000..d89a0a1f
--- /dev/null
+++ b/dxsdk/Include/errors.h
@@ -0,0 +1,47 @@
+//------------------------------------------------------------------------------
+// File: Errors.h
+//
+// Desc: ActiveMovie error defines.
+//
+// Copyright (c) 1992-2001, Microsoft Corporation. All rights reserved.
+//------------------------------------------------------------------------------
+
+
+#ifndef __ERRORS__
+#define __ERRORS__
+
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
+#ifndef _AMOVIE_
+#define AMOVIEAPI DECLSPEC_IMPORT
+#else
+#define AMOVIEAPI
+#endif
+
+// codes 0-01ff are reserved for OLE
+#define VFW_FIRST_CODE 0x200
+#define MAX_ERROR_TEXT_LEN 160
+
+#include <VFWMSGS.H> // includes all message definitions
+
+typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT, char *, DWORD);
+typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT, WCHAR *, DWORD);
+
+AMOVIEAPI DWORD WINAPI AMGetErrorTextA( HRESULT hr , char *pbuffer , DWORD MaxLen);
+AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr , WCHAR *pbuffer , DWORD MaxLen);
+
+
+#ifdef UNICODE
+#define AMGetErrorText AMGetErrorTextW
+typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC;
+#else
+#define AMGetErrorText AMGetErrorTextA
+typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC;
+#endif
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+#endif // __ERRORS__