* include/errors.h: New file.

* include/dshow.h: Include <errors.h>.
This commit is contained in:
Dimitri Papadopoulos
2006-05-03 07:06:26 +00:00
parent 100b96f7b9
commit cedb1281cf
3 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,23 @@
#ifndef _ERRORS_H
#define _ERRORS_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_ERROR_TEXT_LEN 160
DWORD WINAPI AMGetErrorTextA(HRESULT,CHAR*,DWORD);
DWORD WINAPI AMGetErrorTextW(HRESULT,WCHAR*,DWORD);
#ifdef UNICODE
#define AMGetErrorText AMGetErrorTextW
#else
#define AMGetErrorText AMGetErrorTextA
#endif
#ifdef __cplusplus
}
#endif
#endif