errors.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
源码类别:

模拟服务器

开发平台:

C/C++

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