52 lines
1.5 KiB
C
52 lines
1.5 KiB
C
//==========================================================================;
|
|
//
|
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
|
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
|
// PURPOSE.
|
|
//
|
|
// Copyright (c) 1992 - 1997 Microsoft Corporation. All Rights Reserved.
|
|
//
|
|
//--------------------------------------------------------------------------;
|
|
|
|
#ifndef __ERRORS__
|
|
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
|
|
#define __ERRORS__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
|
|
#ifndef _AMOVIE_
|
|
#define AMOVIEAPI DECLSPEC_IMPORT
|
|
#else
|
|
#define AMOVIEAPI
|
|
#endif
|
|
|
|
// codes 0-01ff are reserved for OLE
|
|
#define VFW_FIRST_CODE 0x200
|
|
#define MAX_ERROR_TEXT_LEN 160
|
|
|
|
#include <VFWMSGS.H> // includes all message definitions
|
|
|
|
typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT, char *, DWORD);
|
|
typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT, WCHAR *, DWORD);
|
|
|
|
AMOVIEAPI DWORD WINAPI AMGetErrorTextA( HRESULT hr , char *pbuffer , DWORD MaxLen);
|
|
AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr , WCHAR *pbuffer , DWORD MaxLen);
|
|
|
|
|
|
#ifdef UNICODE
|
|
#define AMGetErrorText AMGetErrorTextW
|
|
typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC;
|
|
#else
|
|
#define AMGetErrorText AMGetErrorTextA
|
|
typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC;
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif // __cplusplus
|
|
#pragma option pop /*P_O_Pop*/
|
|
#endif // __ERRORS__
|