Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

  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__