/*
* Copyright (C) the Wine project
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef __WINE_WINERROR_H
#define __WINE_WINERROR_H
#define FACILITY_NULL 0
#define SEVERITY_SUCCESS 0
#define __HRESULT_FROM_WIN32(x) ((HRESULT)(x) > 0 ? ((HRESULT) (((x) & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000)) : (HRESULT)(x) )
#ifndef _HRESULT_DEFINED
#define _HRESULT_DEFINED
# ifdef _MSC_VER
typedef long HRESULT;
# else
typedef int HRESULT;
# endif
#endif
{
return (HRESULT)x > 0 ? ((HRESULT) ((x & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000)) : (HRESULT)x;
}
/* SCODE <-> HRESULT functions */
/* This macros is obsolete and should not be used in new apps. */
/* This macros is obsolete and should not be used in new apps. */
#define NO_ERROR 0
#define ERROR_SUCCESS 0
/*
* Also defined in winsock.h.
*
* All Windows Sockets error constants are biased by WSABASEERR from
* the "normal"
*/
/*
* Windows Sockets definitions of regular Microsoft C error constants
*/
/*
* Windows Sockets definitions of regular Berkeley error constants
*/
/*
* Extended Windows Sockets error constant definitions
*/
/* HRESULT values for OLE, SHELL and other Interface stuff */
/* the codes 4000-40ff are reserved for OLE */
#ifdef RC_INVOKED
#define _HRESULT_TYPEDEF_(x) (x)
#else
#endif
/* Task Scheduler Service Error Codes */
/*Cryptographic Error Codes */
/* Smart card management error codes */
#endif /* __WINE_WINERROR_H */