Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will...
[reactos.git] / reactos / include / dxsdk / errors.h
1
2 #ifndef __ERRORS__
3 #define __ERRORS__
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 #ifndef _AMOVIE_
10 #define AMOVIEAPI DECLSPEC_IMPORT
11 #else
12 #define AMOVIEAPI
13 #endif
14
15 #define VFW_FIRST_CODE 0x200
16 #define MAX_ERROR_TEXT_LEN 160
17
18 #include <VFWMSGS.H>
19
20 typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT, char *, DWORD);
21 typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT, WCHAR *, DWORD);
22
23 AMOVIEAPI DWORD WINAPI AMGetErrorTextA( HRESULT hr , char *pbuffer , DWORD MaxLen);
24 AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr , WCHAR *pbuffer , DWORD MaxLen);
25
26 #ifdef UNICODE
27 #define AMGetErrorText AMGetErrorTextW
28 typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC;
29 #else
30 #define AMGetErrorText AMGetErrorTextA
31 typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC;
32 #endif
33
34 #ifdef __cplusplus
35 }
36 #endif
37 #endif
38