OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
defs.h File Reference

ObjectComponents fundamental definitions. More...

#include <owl/private/defs.h>
#include <owl/defs.h>
#include <ocf/ocflink.h>

Go to the source code of this file.

Namespaces

namespace  ocf
 Object Component Framework (COM encapsulation)
 

Macros

#define _OCFCLASS
 
#define _OCFDATA(p)   p
 
#define _OCFFUNC(p)   p
 
#define _OCFCFUNC(p)   p _CCONV
 
#define DECLARE_STREAMABLE_OCF(cls, ver)    DECLARE_STREAMABLE( _OCFCLASS, cls, ver )
 
#define DECLARE_STREAMABLE_FROM_BASE_OCF(cls, base)    DECLARE_STREAMABLE_FROM_BASE( _OCFCLASS, cls, base )
 
#define DECLARE_ABSTRACT_STREAMABLE_OCF(cls, ver)    DECLARE_ABSTRACT_STREAMABLE( _OCFCLASS, cls, ver )
 
#define HR_NOERROR   NOERROR
 
#define HR_OK   ResultFromScode(S_OK)
 
#define HR_FALSE   ResultFromScode(S_FALSE)
 
#define HR_NOTIMPL   ResultFromScode(E_NOTIMPL)
 
#define HR_OUTOFMEMORY   ResultFromScode(E_OUTOFMEMORY)
 
#define HR_INVALIDARG   ResultFromScode(E_INVALIDARG)
 
#define HR_NOINTERFACE   ResultFromScode(E_NOINTERFACE)
 
#define HR_POINTER   ResultFromScode(E_POINTER)
 
#define HR_HANDLE   ResultFromScode(E_HANDLE)
 
#define HR_ABORT   ResultFromScode(E_ABORT)
 
#define HR_FAIL   ResultFromScode(E_FAIL)
 
#define HR_CLASS_NOAGGREGATION   ResultFromScode(CLASS_E_NOAGGREGATION)
 
#define HR_CLASS_CLASSNOTAVAILABLE   ResultFromScode(CLASS_E_CLASSNOTAVAILABLE)
 
#define HR_DISP_MEMBERNOTFOUND   ResultFromScode(DISP_E_MEMBERNOTFOUND)
 
#define HR_DISP_BADPARAMCOUNT   ResultFromScode(DISP_E_BADPARAMCOUNT)
 
#define HR_DISP_BADVARTYPE   ResultFromScode(DISP_E_BADVARTYPE)
 
#define HR_DISP_OVERFLOW   ResultFromScode(DISP_E_OVERFLOW)
 
#define HR_DISP_TYPEMISMATCH   ResultFromScode(DISP_E_TYPEMISMATCH)
 
#define HR_DISP_PARAMNOTFOUND   ResultFromScode(DISP_E_PARAMNOTFOUND)
 
#define HR_DISP_PARAMNOTOPTIONAL   ResultFromScode(DISP_E_PARAMNOTOPTIONAL)
 
#define HR_DISP_EXCEPTION   ResultFromScode(DISP_E_EXCEPTION)
 
#define HR_DISP_OVERFLOW   ResultFromScode(DISP_E_OVERFLOW)
 
#define HR_DISP_UNKNOWNINTERFACE   ResultFromScode(DISP_E_UNKNOWNINTERFACE)
 
#define HR_DISP_UNKNOWNNAME   ResultFromScode(DISP_E_UNKNOWNNAME)
 
#define HR_TYPE_INVALIDSTATE   ResultFromScode(TYPE_E_INVALIDSTATE)
 
#define HR_TYPE_WRONGTYPEKIND   ResultFromScode(TYPE_E_WRONGTYPEKIND)
 
#define HR_TYPE_LIBNOTREGISTERED   ResultFromScode(TYPE_E_LIBNOTREGISTERED)
 
#define HR_TYPE_ELEMENTNOTFOUND   ResultFromScode(TYPE_E_ELEMENTNOTFOUND)
 
#define HR_TYPE_UNSUPFORMAT   ResultFromScode(TYPE_E_UNSUPFORMAT)
 
#define HR_DATA_FORMATETC   ResultFromScode(DATA_E_FORMATETC)
 
#define HR_DV_FORMATETC   ResultFromScode(DV_E_FORMATETC)
 
#define HR_DATA_SAMEFORMATETC   ResultFromScode(DATA_S_SAMEFORMATETC)
 
#define HR_MK_NOOBJECT   ResultFromScode(MK_E_NOOBJECT)
 
#define HR_MK_NOSTORAGE   ResultFromScode(MK_E_NOSTORAGE)
 
#define HR_MK_UNAVAILABLE   ResultFromScode(MK_E_UNAVAILABLE)
 
#define HR_OLE_STATIC   ResultFromScode(OLE_E_STATIC)
 
#define HR_OLE_NOT_INPLACEACTIVE   ResultFromScode(OLE_E_NOT_INPLACEACTIVE)
 
#define HR_OLEOBJ_INVALIDVERB   ResultFromScode(OLEOBJ_S_INVALIDVERB)
 
#define HR_OLE_USEREG   ResultFromScode(OLE_S_USEREG)
 
#define HR_RPC_CALL_REJECTED   ResultFromScode(RPC_E_CALL_REJECTED)
 
#define HR_STG_CANTSAVE   ResultFromScode(STG_E_CANTSAVE)
 

Functions

HRESULT ocf::HRFailIfZero (int bexpr)
 
HRESULT ocf::HRFalseIfZero (int bexpr)
 
bool ocf::HRSucceeded (HRESULT hr)
 
bool ocf::HRIsOK (HRESULT hr)
 

Detailed Description

ObjectComponents fundamental definitions.

Definition in file defs.h.

Macro Definition Documentation

◆ _OCFCFUNC

#define _OCFCFUNC ( p)    p _CCONV

Definition at line 48 of file defs.h.

◆ _OCFCLASS

#define _OCFCLASS

Definition at line 45 of file defs.h.

◆ _OCFDATA

#define _OCFDATA ( p)    p

Definition at line 46 of file defs.h.

◆ _OCFFUNC

#define _OCFFUNC ( p)    p

Definition at line 47 of file defs.h.

◆ DECLARE_ABSTRACT_STREAMABLE_OCF

#define DECLARE_ABSTRACT_STREAMABLE_OCF ( cls,
ver )    DECLARE_ABSTRACT_STREAMABLE( _OCFCLASS, cls, ver )

Definition at line 65 of file defs.h.

◆ DECLARE_STREAMABLE_FROM_BASE_OCF

#define DECLARE_STREAMABLE_FROM_BASE_OCF ( cls,
base )    DECLARE_STREAMABLE_FROM_BASE( _OCFCLASS, cls, base )

Definition at line 63 of file defs.h.

◆ DECLARE_STREAMABLE_OCF

#define DECLARE_STREAMABLE_OCF ( cls,
ver )    DECLARE_STREAMABLE( _OCFCLASS, cls, ver )

Definition at line 61 of file defs.h.

◆ HR_ABORT

#define HR_ABORT   ResultFromScode(E_ABORT)

Definition at line 82 of file defs.h.

◆ HR_CLASS_CLASSNOTAVAILABLE

#define HR_CLASS_CLASSNOTAVAILABLE   ResultFromScode(CLASS_E_CLASSNOTAVAILABLE)

Definition at line 86 of file defs.h.

◆ HR_CLASS_NOAGGREGATION

#define HR_CLASS_NOAGGREGATION   ResultFromScode(CLASS_E_NOAGGREGATION)

Definition at line 85 of file defs.h.

◆ HR_DATA_FORMATETC

#define HR_DATA_FORMATETC   ResultFromScode(DATA_E_FORMATETC)

Definition at line 106 of file defs.h.

◆ HR_DATA_SAMEFORMATETC

#define HR_DATA_SAMEFORMATETC   ResultFromScode(DATA_S_SAMEFORMATETC)

Definition at line 108 of file defs.h.

◆ HR_DISP_BADPARAMCOUNT

#define HR_DISP_BADPARAMCOUNT   ResultFromScode(DISP_E_BADPARAMCOUNT)

Definition at line 89 of file defs.h.

◆ HR_DISP_BADVARTYPE

#define HR_DISP_BADVARTYPE   ResultFromScode(DISP_E_BADVARTYPE)

Definition at line 90 of file defs.h.

◆ HR_DISP_EXCEPTION

#define HR_DISP_EXCEPTION   ResultFromScode(DISP_E_EXCEPTION)

Definition at line 95 of file defs.h.

◆ HR_DISP_MEMBERNOTFOUND

#define HR_DISP_MEMBERNOTFOUND   ResultFromScode(DISP_E_MEMBERNOTFOUND)

Definition at line 88 of file defs.h.

◆ HR_DISP_OVERFLOW [1/2]

#define HR_DISP_OVERFLOW   ResultFromScode(DISP_E_OVERFLOW)

Definition at line 91 of file defs.h.

◆ HR_DISP_OVERFLOW [2/2]

#define HR_DISP_OVERFLOW   ResultFromScode(DISP_E_OVERFLOW)

Definition at line 91 of file defs.h.

◆ HR_DISP_PARAMNOTFOUND

#define HR_DISP_PARAMNOTFOUND   ResultFromScode(DISP_E_PARAMNOTFOUND)

Definition at line 93 of file defs.h.

◆ HR_DISP_PARAMNOTOPTIONAL

#define HR_DISP_PARAMNOTOPTIONAL   ResultFromScode(DISP_E_PARAMNOTOPTIONAL)

Definition at line 94 of file defs.h.

◆ HR_DISP_TYPEMISMATCH

#define HR_DISP_TYPEMISMATCH   ResultFromScode(DISP_E_TYPEMISMATCH)

Definition at line 92 of file defs.h.

◆ HR_DISP_UNKNOWNINTERFACE

#define HR_DISP_UNKNOWNINTERFACE   ResultFromScode(DISP_E_UNKNOWNINTERFACE)

Definition at line 97 of file defs.h.

◆ HR_DISP_UNKNOWNNAME

#define HR_DISP_UNKNOWNNAME   ResultFromScode(DISP_E_UNKNOWNNAME)

Definition at line 98 of file defs.h.

◆ HR_DV_FORMATETC

#define HR_DV_FORMATETC   ResultFromScode(DV_E_FORMATETC)

Definition at line 107 of file defs.h.

◆ HR_FAIL

#define HR_FAIL   ResultFromScode(E_FAIL)

Definition at line 83 of file defs.h.

◆ HR_FALSE

#define HR_FALSE   ResultFromScode(S_FALSE)

Definition at line 75 of file defs.h.

◆ HR_HANDLE

#define HR_HANDLE   ResultFromScode(E_HANDLE)

Definition at line 81 of file defs.h.

◆ HR_INVALIDARG

#define HR_INVALIDARG   ResultFromScode(E_INVALIDARG)

Definition at line 78 of file defs.h.

◆ HR_MK_NOOBJECT

#define HR_MK_NOOBJECT   ResultFromScode(MK_E_NOOBJECT)

Definition at line 110 of file defs.h.

◆ HR_MK_NOSTORAGE

#define HR_MK_NOSTORAGE   ResultFromScode(MK_E_NOSTORAGE)

Definition at line 111 of file defs.h.

◆ HR_MK_UNAVAILABLE

#define HR_MK_UNAVAILABLE   ResultFromScode(MK_E_UNAVAILABLE)

Definition at line 112 of file defs.h.

◆ HR_NOERROR

#define HR_NOERROR   NOERROR

Definition at line 73 of file defs.h.

◆ HR_NOINTERFACE

#define HR_NOINTERFACE   ResultFromScode(E_NOINTERFACE)

Definition at line 79 of file defs.h.

◆ HR_NOTIMPL

#define HR_NOTIMPL   ResultFromScode(E_NOTIMPL)

Definition at line 76 of file defs.h.

◆ HR_OK

#define HR_OK   ResultFromScode(S_OK)

Definition at line 74 of file defs.h.

◆ HR_OLE_NOT_INPLACEACTIVE

#define HR_OLE_NOT_INPLACEACTIVE   ResultFromScode(OLE_E_NOT_INPLACEACTIVE)

Definition at line 115 of file defs.h.

◆ HR_OLE_STATIC

#define HR_OLE_STATIC   ResultFromScode(OLE_E_STATIC)

Definition at line 114 of file defs.h.

◆ HR_OLE_USEREG

#define HR_OLE_USEREG   ResultFromScode(OLE_S_USEREG)

Definition at line 117 of file defs.h.

◆ HR_OLEOBJ_INVALIDVERB

#define HR_OLEOBJ_INVALIDVERB   ResultFromScode(OLEOBJ_S_INVALIDVERB)

Definition at line 116 of file defs.h.

◆ HR_OUTOFMEMORY

#define HR_OUTOFMEMORY   ResultFromScode(E_OUTOFMEMORY)

Definition at line 77 of file defs.h.

◆ HR_POINTER

#define HR_POINTER   ResultFromScode(E_POINTER)

Definition at line 80 of file defs.h.

◆ HR_RPC_CALL_REJECTED

#define HR_RPC_CALL_REJECTED   ResultFromScode(RPC_E_CALL_REJECTED)

Definition at line 119 of file defs.h.

◆ HR_STG_CANTSAVE

#define HR_STG_CANTSAVE   ResultFromScode(STG_E_CANTSAVE)

Definition at line 120 of file defs.h.

◆ HR_TYPE_ELEMENTNOTFOUND

#define HR_TYPE_ELEMENTNOTFOUND   ResultFromScode(TYPE_E_ELEMENTNOTFOUND)

Definition at line 103 of file defs.h.

◆ HR_TYPE_INVALIDSTATE

#define HR_TYPE_INVALIDSTATE   ResultFromScode(TYPE_E_INVALIDSTATE)

Definition at line 100 of file defs.h.

◆ HR_TYPE_LIBNOTREGISTERED

#define HR_TYPE_LIBNOTREGISTERED   ResultFromScode(TYPE_E_LIBNOTREGISTERED)

Definition at line 102 of file defs.h.

◆ HR_TYPE_UNSUPFORMAT

#define HR_TYPE_UNSUPFORMAT   ResultFromScode(TYPE_E_UNSUPFORMAT)

Definition at line 104 of file defs.h.

◆ HR_TYPE_WRONGTYPEKIND

#define HR_TYPE_WRONGTYPEKIND   ResultFromScode(TYPE_E_WRONGTYPEKIND)

Definition at line 101 of file defs.h.