/[cvs]/api/include/errors.h
ViewVC logotype

Contents of /api/include/errors.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Sun Jul 1 20:47:59 2001 UTC (22 years, 10 months ago) by bearsoft
Branch: lazy, MAIN
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First import

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__

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26