home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / errors.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  1KB  |  50 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992 - 1997  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11.  
  12. #ifndef __ERRORS__
  13. #define __ERRORS__
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif // __cplusplus
  18.  
  19. #ifndef _AMOVIE_
  20. #define AMOVIEAPI   DECLSPEC_IMPORT
  21. #else
  22. #define AMOVIEAPI
  23. #endif
  24.  
  25. // codes 0-01ff are reserved for OLE
  26. #define VFW_FIRST_CODE   0x200
  27. #define MAX_ERROR_TEXT_LEN 160
  28.  
  29. #include <VFWMSGS.H>                    // includes all message definitions
  30.  
  31. typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT, char *, DWORD);
  32. typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT, WCHAR *, DWORD);
  33.  
  34. AMOVIEAPI DWORD WINAPI AMGetErrorTextA( HRESULT hr , char *pbuffer , DWORD MaxLen);
  35. AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr , WCHAR *pbuffer , DWORD MaxLen);
  36.  
  37.  
  38. #ifdef UNICODE
  39. #define AMGetErrorText  AMGetErrorTextW
  40. typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC;
  41. #else
  42. #define AMGetErrorText  AMGetErrorTextA
  43. typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC;
  44. #endif
  45.  
  46. #ifdef __cplusplus
  47. }
  48. #endif // __cplusplus
  49. #endif // __ERRORS__
  50.