- Temporary fix for making locale switches possible. Patch by zebasoftis. Fixes bug...
[reactos.git] / reactos / w32api / include / errors.h
1 #ifndef __ERRORS__
2 #define __ERRORS__
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #ifndef _AMOVIE_
9 #define AMOVIEAPI DECLSPEC_IMPORT
10 #else
11 #define AMOVIEAPI
12 #endif
13
14 #define VFW_FIRST_CODE 0x200
15 #define MAX_ERROR_TEXT_LEN 160
16 #include <VFWMSGS.H>
17
18 typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT,
19 char *, DWORD);
20 AMOVIEAPI DWORD WINAPI AMGetErrorTextA( HRESULT hr ,
21 char *pbuffer , DWORD MaxLen);
22
23 typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT,
24 WCHAR *, DWORD);
25 AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr ,
26 WCHAR *pbuffer , DWORD MaxLen);
27
28 #ifndef UNICODE
29 #define AMGetErrorText AMGetErrorTextA
30 typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC;
31 #else
32 #define AMGetErrorText AMGetErrorTextW
33 typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC;
34 #endif
35
36 #ifdef __cplusplus
37 }
38 #endif
39 #endif