PageRenderTime 21ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/ATLCOMService/ATLCOMService.idl

#
IDL | 51 lines | 44 code | 3 blank | 4 comment | 0 complexity | 9f4e1bdc1e53025dc11c41c1b62e2cbb MD5 | raw file
 1// ATLCOMService.idl : IDL source for ATLCOMService
 2//
 3
 4// This file will be processed by the MIDL tool to
 5// produce the type library (ATLCOMService.tlb) and marshalling code.
 6
 7import "oaidl.idl";
 8import "ocidl.idl";
 9
10[
11	object,
12	uuid(1B877090-76CD-4EDE-8115-EC4CCD9676F3),
13	dual,
14	nonextensible,
15	helpstring("ISimpleObject Interface"),
16	pointer_default(unique)
17]
18interface ISimpleObject : IDispatch{
19	[propget, id(1), helpstring("property FloatProperty")] HRESULT FloatProperty([out, retval] FLOAT* pVal);
20	[propput, id(1), helpstring("property FloatProperty")] HRESULT FloatProperty([in] FLOAT newVal);
21	[id(2), helpstring("method HelloWorld")] HRESULT HelloWorld([out,retval] BSTR* pRet);
22	[id(3), helpstring("method GetProcessThreadID")] HRESULT GetProcessThreadID([out] LONG* pdwProcessId, [out] LONG* pdwThreadId);
23};
24[
25	uuid(CC2CA6F0-2220-4D77-BA46-4BCB62156A28),
26	version(1.0),
27	helpstring("ATLCOMService 1.0 Type Library")
28]
29library ATLCOMServiceLib
30{
31	importlib("stdole2.tlb");
32	[
33		uuid(7DACF5E9-2885-4E4E-83DD-CA6CC3A88B6D),
34		helpstring("_ISimpleObjectEvents Interface")
35	]
36	dispinterface _ISimpleObjectEvents
37	{
38		properties:
39		methods:
40			[id(1), helpstring("method FloatPropertyChanging")] void FloatPropertyChanging([in] FLOAT NewValue, [in,out] VARIANT_BOOL* Cancel);
41	};
42	[
43		uuid(388F1C82-ED00-4966-9590-02F6B9CCA41B),
44		helpstring("SimpleObject Class")
45	]
46	coclass SimpleObject
47	{
48		[default] interface ISimpleObject;
49		[default, source] dispinterface _ISimpleObjectEvents;
50	};
51};