update for HEAD-2003091401
[reactos.git] / include / ole32 / winerror.h
1 /*
2  * COPYRIGHT:       See COPYING in the top level directory
3  * PROJECT:         ReactOS system libraries
4  * FILE:            include\ole32\winerror.h
5  * PURPOSE:         Defines windows error codes
6  * PROGRAMMER:      jurgen van gael [jurgen.vangael@student.kuleuven.ac.be]
7  * UPDATE HISTORY:
8  *                  Created 01/05/2001
9  */
10 /********************************************************************
11
12
13 This library is free software; you can redistribute it and/or
14 modify it under the terms of the GNU Library General Public License as
15 published by the Free Software Foundation; either version 2 of the
16 License, or (at your option) any later version.
17
18 This library is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 Library General Public License for more details.
22
23 You should have received a copy of the GNU Library General Public
24 License along with this library; see the file COPYING.LIB.  If
25 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
26 Cambridge, MA 02139, USA.
27
28
29 ********************************************************************/
30 #ifndef _WINERROR_H
31 #define _WINERROR_H
32 #if 0
33 /*
34  *      Return Code macros
35  */
36 #define SUCCEEDED(Status)       ((HRESULT)(Status) >= 0)
37 #define FAILED(Status)          ((HRESULT)(Status)<0)
38
39 /*
40  *      Success Codes
41  */
42 #define S_OK                                            0x00000000L
43 #define S_FALSE                                         0x00000001L
44
45 /*
46  *      Error Codes
47  */
48 #define E_NOINTERFACE                           0x80000004L
49 #define E_POINTER                                       0x80004003L
50 #define E_FAIL                                          0x80004005L
51 #define E_UNEXPECTED                            0x8000FFFFL
52 #define CLASS_E_NOAGGREGATION           0x80040110L
53 #define CLASS_E_CLASSNOTAVAILABLE       0x80040111L
54 #define E_OUTOFMEMORY                           0x8007000EL
55 #define E_INVALIDARG                            0x80070057L
56
57 #endif
58
59 #endif