master
 1#include <_mingw_unicode.h>
 2/*
 3 * Copyright (C) 2006 Hans Leidekker
 4 *
 5 * This library is free software; you can redistribute it and/or
 6 * modify it under the terms of the GNU Lesser General Public
 7 * License as published by the Free Software Foundation; either
 8 * version 2.1 of the License, or (at your option) any later version.
 9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20#ifndef __ERRORS__
21#define __ERRORS__
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#define AMOVIEAPI
28
29#define VFW_FIRST_CODE      0x200
30#define MAX_ERROR_TEXT_LEN  160
31
32#include <vfwmsgs.h>
33
34typedef WINBOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT,char*,DWORD);
35typedef WINBOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT,WCHAR*,DWORD);
36__MINGW_TYPEDEF_AW(AMGETERRORTEXTPROC)
37
38DWORD WINAPI AMGetErrorTextA(HRESULT,LPSTR,DWORD);
39DWORD WINAPI AMGetErrorTextW(HRESULT,LPWSTR,DWORD);
40#define AMGetErrorText __MINGW_NAME_AW(AMGetErrorText)
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* __ERRORS__ */