PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/Visual Studio 2008/CppExeCOMServer/CppExeCOMServer.idl

#
IDL | 34 lines | 30 code | 2 blank | 2 comment | 0 complexity | eb14b8e4748bec7e5866467e3a2c0875 MD5 | raw file
 1import "oaidl.idl";
 2import "ocidl.idl";
 3
 4// Define ISimpleObject interface
 5[
 6    object,
 7    uuid(12C8AF02-340D-4fb7-969E-C309F5BA43ED),
 8    dual,
 9    helpstring("ISimpleObject Interface"),
10    pointer_default(unique)
11]
12interface ISimpleObject : IDispatch
13{
14    [propget, id(1), helpstring("property FloatProperty")] HRESULT FloatProperty([out, retval] FLOAT* pVal);
15	[propput, id(1), helpstring("property FloatProperty")] HRESULT FloatProperty([in] FLOAT newVal);
16	[id(2), helpstring("method HelloWorld")] HRESULT HelloWorld([out,retval] BSTR* pRet);
17	[id(3), helpstring("method GetProcessThreadID")] HRESULT GetProcessThreadID([out] LONG* pdwProcessId, [out] LONG* pdwThreadId);
18};
19
20// Library statement
21[
22    uuid(6E43F33B-D957-45a0-9B38-F98B80AB0E30),
23    version(1.0),
24    helpstring("CppExeCOMServer 1.0 Type Library")
25]
26library CppExeCOMServerLib
27{
28    importlib("stdole32.tlb");
29    [uuid(4B4B2F34-E34F-4fca-B721-E71CF774196A)]
30    coclass SimpleObject
31    {
32        [default] interface ISimpleObject;
33    };
34};