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]
10 /********************************************************************
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.
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.
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.
29 ********************************************************************/
36 #define SUCCEEDED(Status) ((HRESULT)(Status) >= 0)
37 #define FAILED(Status) ((HRESULT)(Status)<0)
42 #define S_OK 0x00000000L
43 #define S_FALSE 0x00000001L
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