diff options
author | Fire_Head <Fire-Head@users.noreply.github.com> | 2020-08-03 00:03:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 00:03:24 +0200 |
commit | 4b614333c6778ae49cef688f6ef691dd58384d13 (patch) | |
tree | ced50966eaaf373f8733547046baf2bdc558662d /sdk/dx8sdk/Include/errors.h | |
parent | cleanup (diff) | |
parent | Move sdk and eax (diff) | |
download | re3-4b614333c6778ae49cef688f6ef691dd58384d13.tar re3-4b614333c6778ae49cef688f6ef691dd58384d13.tar.gz re3-4b614333c6778ae49cef688f6ef691dd58384d13.tar.bz2 re3-4b614333c6778ae49cef688f6ef691dd58384d13.tar.lz re3-4b614333c6778ae49cef688f6ef691dd58384d13.tar.xz re3-4b614333c6778ae49cef688f6ef691dd58384d13.tar.zst re3-4b614333c6778ae49cef688f6ef691dd58384d13.zip |
Diffstat (limited to 'sdk/dx8sdk/Include/errors.h')
-rw-r--r-- | sdk/dx8sdk/Include/errors.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sdk/dx8sdk/Include/errors.h b/sdk/dx8sdk/Include/errors.h new file mode 100644 index 00000000..cee756fb --- /dev/null +++ b/sdk/dx8sdk/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__ |