diff options
Diffstat (limited to 'src/inc/ivehandler.idl')
-rw-r--r-- | src/inc/ivehandler.idl | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/src/inc/ivehandler.idl b/src/inc/ivehandler.idl new file mode 100644 index 0000000000..0c0ad2b9da --- /dev/null +++ b/src/inc/ivehandler.idl @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +/* ------------------------------------------------------------------------- * + * Common Language Runtime Verification Event Handler Interface + * ------------------------------------------------------------------------- */ + +/* ------------------------------------------------------------------------- * + * Imported types + * ------------------------------------------------------------------------- */ + +#ifndef DO_NO_IMPORTS + +import "unknwn.idl"; + +#define _VER_RAW_STRUCT_FOR_IDL_ +#include "VerError.h" +#undef _VER_RAW_STRUCT_FOR_IDL_ + +#endif + +typedef _VerError VEContext; + +/* ------------------------------------------------------------------------- * + * Forward declarations + * ------------------------------------------------------------------------- */ + +interface IVEHandler; + + +/* ------------------------------------------------------------------------- * + * Library defintion + * ------------------------------------------------------------------------- */ + +[ + uuid(856CA1B0-7DAB-11d3-ACEC-00C04F86C309), + version(1.0), + helpstring("Common Language Runtime Verification Event Handler 1.0 Type Library") +] +library VEHandlerLib +{ + importlib("STDOLE2.TLB"); + + [ + uuid(856CA1B1-7DAB-11d3-ACEC-00C04F86C309) + ] + coclass VEHandlerClass + { + [default] interface IVEHandler; + }; + +}; + +/* ------------------------------------------------------------------------- * + * IVEHandler interface + * ------------------------------------------------------------------------- */ +[ + object, + uuid(856CA1B2-7DAB-11d3-ACEC-00C04F86C309), + pointer_default(unique) +] +interface IVEHandler : IUnknown +{ + HRESULT VEHandler( + [in] HRESULT VECode, + [in] VEContext Context, + [in] SAFEARRAY(VARIANT) psa); + HRESULT SetReporterFtn( + [in] __int64 lFnPtr); + +}; + |