summaryrefslogtreecommitdiff
path: root/src/inc/ivehandler.idl
blob: 0c0ad2b9dabd36642c07691762bb2dd305ebd614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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);

};