[363] | 1 | // watcher.idl : watcher.dll ç¨ã® IDL ã½ã¼ã¹ ãã¡ã¤ã«
|
---|
| 2 | //
|
---|
| 3 |
|
---|
| 4 | // ãã®ãã¡ã¤ã«ã¯ã¿ã¤ã ã©ã¤ãã©ãª (watcher.tlb) ã使ããããã«
|
---|
| 5 | // ã¿ã¤ã ã©ã¤ãã©ãªä½æãã¼ã« MIDL ã«ãã£ã¦å¦çããã¾ãã
|
---|
| 6 |
|
---|
| 7 | import "oaidl.idl";
|
---|
| 8 | import "ocidl.idl";
|
---|
| 9 | #include "olectl.h"
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | [
|
---|
| 13 | object,
|
---|
| 14 | uuid(1FFB399D-1058-40B4-AF62-EA43CDDD79B0),
|
---|
| 15 | dual,
|
---|
| 16 | helpstring("IKernelLogControl Interface"),
|
---|
| 17 | pointer_default(unique)
|
---|
| 18 | ]
|
---|
| 19 | interface IKernelLogControl : IDispatch
|
---|
| 20 | {
|
---|
| 21 | [id(1), helpstring("ã¡ã½ãã Open")] HRESULT Open();
|
---|
| 22 | [id(2), helpstring("ã¡ã½ãã Close")] HRESULT Close();
|
---|
| 23 | [propget, id(3), helpstring("ãããã㣠Type")] HRESULT Type([out, retval] long *pVal);
|
---|
| 24 | [propget, id(4), helpstring("ãããã㣠Logtim")] HRESULT Logtim([out, retval] long *pVal);
|
---|
| 25 | [propget, id(5), helpstring("ãããã㣠isValid")] HRESULT isValid([out, retval] BOOL *pVal);
|
---|
| 26 | [propget, id(6), helpstring("ãããã㣠Param")] HRESULT Param(long index, [out, retval] long *pVal);
|
---|
| 27 | };
|
---|
| 28 |
|
---|
| 29 | [
|
---|
| 30 | uuid(A242E427-5E2F-4447-AC87-0C7CC382CBFE),
|
---|
| 31 | version(1.0),
|
---|
| 32 | helpstring("watcher 1.0 ã¿ã¤ã ã©ã¤ãã©ãª")
|
---|
| 33 | ]
|
---|
| 34 | library WATCHERLib
|
---|
| 35 | {
|
---|
| 36 | importlib("stdole32.tlb");
|
---|
| 37 | importlib("stdole2.tlb");
|
---|
| 38 |
|
---|
| 39 | [
|
---|
| 40 | uuid(99CCF4E3-5D17-477E-BA7B-F5DE796C8E13),
|
---|
| 41 | helpstring("_IKernelLogControlEvents Interface")
|
---|
| 42 | ]
|
---|
| 43 | dispinterface _IKernelLogControlEvents
|
---|
| 44 | {
|
---|
| 45 | properties:
|
---|
| 46 | methods:
|
---|
| 47 | [id(1), helpstring("ã¡ã½ãã OnKernelStart")] HRESULT OnKernelStart();
|
---|
| 48 | [id(2), helpstring("ã¡ã½ãã OnKernelExit")] HRESULT OnKernelExit();
|
---|
| 49 | [id(3), helpstring("ã¡ã½ãã OnLogEvent")] HRESULT OnLogEvent([in] int type);
|
---|
| 50 | };
|
---|
| 51 |
|
---|
| 52 |
|
---|
| 53 | [
|
---|
| 54 | object,
|
---|
| 55 | uuid(80AA7D6B-F115-4ACE-97F6-55391BA27997),
|
---|
| 56 | dual,
|
---|
| 57 | helpstring("IDirectoryMap Interface"),
|
---|
| 58 | pointer_default(unique)
|
---|
| 59 | ]
|
---|
| 60 | interface IDirectoryMap : IDispatch
|
---|
| 61 | {
|
---|
| 62 | [propget, id(1), helpstring("ãããã㣠Path")] HRESULT Path([out, retval] BSTR *pVal);
|
---|
| 63 | [propput, id(1), helpstring("ãããã㣠Path")] HRESULT Path([in] BSTR newVal);
|
---|
| 64 | [propget, id(2), helpstring("ãããã㣠Valid")] HRESULT Valid([out, retval] BOOL *pVal);
|
---|
| 65 | [id(3), helpstring("ã¡ã½ãã Load")] HRESULT Load(BSTR filename);
|
---|
| 66 | };
|
---|
| 67 |
|
---|
| 68 |
|
---|
| 69 | [
|
---|
| 70 | uuid(3474A699-17D5-4E00-8068-6D6608F3DF8A),
|
---|
| 71 | helpstring("KernelLogControl Class")
|
---|
| 72 | ]
|
---|
| 73 | coclass KernelLogControl
|
---|
| 74 | {
|
---|
| 75 | [default] interface IKernelLogControl;
|
---|
| 76 | [default, source] dispinterface _IKernelLogControlEvents;
|
---|
| 77 | };
|
---|
| 78 | [
|
---|
| 79 | uuid(BA0030F5-042A-43DC-BF89-1B343A38E320),
|
---|
| 80 | helpstring("DirectoryMap Class")
|
---|
| 81 | ]
|
---|
| 82 | coclass DirectoryMap
|
---|
| 83 | {
|
---|
| 84 | [default] interface IDirectoryMap;
|
---|
| 85 | };
|
---|
| 86 | };
|
---|