| 1 |
bearsoft |
1.1 |
//------------------------------------------------------------------------------
|
| 2 |
|
|
// File: Errors.h
|
| 3 |
|
|
//
|
| 4 |
|
|
// Desc: ActiveMovie error defines.
|
| 5 |
|
|
//
|
| 6 |
|
|
// Copyright (c) 1992 - 2000, Microsoft Corporation. All rights reserved.
|
| 7 |
|
|
//------------------------------------------------------------------------------
|
| 8 |
|
|
|
| 9 |
|
|
|
| 10 |
|
|
#ifndef __ERRORS__
|
| 11 |
|
|
#define __ERRORS__
|
| 12 |
|
|
|
| 13 |
|
|
#ifdef __cplusplus
|
| 14 |
|
|
extern "C" {
|
| 15 |
|
|
#endif // __cplusplus
|
| 16 |
|
|
|
| 17 |
|
|
#ifndef _AMOVIE_
|
| 18 |
|
|
#define AMOVIEAPI DECLSPEC_IMPORT
|
| 19 |
|
|
#else
|
| 20 |
|
|
#define AMOVIEAPI
|
| 21 |
|
|
#endif
|
| 22 |
|
|
|
| 23 |
|
|
// codes 0-01ff are reserved for OLE
|
| 24 |
|
|
#define VFW_FIRST_CODE 0x200
|
| 25 |
|
|
#define MAX_ERROR_TEXT_LEN 160
|
| 26 |
|
|
|
| 27 |
|
|
#include <VFWMSGS.H> // includes all message definitions
|
| 28 |
|
|
|
| 29 |
|
|
typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT, char *, DWORD);
|
| 30 |
|
|
typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT, WCHAR *, DWORD);
|
| 31 |
|
|
|
| 32 |
|
|
AMOVIEAPI DWORD WINAPI AMGetErrorTextA( HRESULT hr , char *pbuffer , DWORD MaxLen);
|
| 33 |
|
|
AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr , WCHAR *pbuffer , DWORD MaxLen);
|
| 34 |
|
|
|
| 35 |
|
|
|
| 36 |
|
|
#ifdef UNICODE
|
| 37 |
|
|
#define AMGetErrorText AMGetErrorTextW
|
| 38 |
|
|
typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC;
|
| 39 |
|
|
#else
|
| 40 |
|
|
#define AMGetErrorText AMGetErrorTextA
|
| 41 |
|
|
typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC;
|
| 42 |
|
|
#endif
|
| 43 |
|
|
|
| 44 |
|
|
#ifdef __cplusplus
|
| 45 |
|
|
}
|
| 46 |
|
|
#endif // __cplusplus
|
| 47 |
|
|
#endif // __ERRORS__
|