7
|
1 // if_ole.idl - IDL source for the Vim OLE Automation interface
|
|
2 //
|
|
3 // Processed by the IDL compiler (MIDL) to generate the type library
|
|
4 // (Vim.tlb).
|
|
5 //
|
|
6 // Command line:
|
|
7 // MIDL /proxy nul /iid iid_ole.c /h if_ole.h /tlb vim.tlb if_ole.idl
|
|
8
|
|
9 [
|
|
10 object,
|
|
11 uuid(0F0BFAE2-4C90-11d1-82D7-0004AC368519), // IID_IVim
|
|
12 helpstring("IVim"),
|
|
13 pointer_default(unique),
|
|
14 dual,
|
|
15 oleautomation
|
|
16 ]
|
|
17 interface IVim : IDispatch
|
|
18 {
|
|
19 import "oaidl.idl";
|
|
20 HRESULT SendKeys([in]BSTR keys);
|
|
21 HRESULT Eval([in]BSTR expr, [out, retval]BSTR* result);
|
|
22 HRESULT SetForeground(void);
|
1569
|
23 HRESULT GetHwnd([out, retval]UINT_PTR* result);
|
7
|
24 };
|
|
25
|
|
26 // Component and type library definitions
|
|
27 [
|
|
28 uuid(0F0BFAE0-4C90-11d1-82D7-0004AC368519), // LIBID_Vim
|
|
29 helpstring("Vim OLE Interface 1.1 Type Library"),
|
|
30 version(1.1)
|
|
31 ]
|
|
32 library Vim
|
|
33 {
|
|
34 importlib("stdole32.tlb");
|
|
35
|
|
36 // Component
|
|
37 [
|
|
38 uuid(0F0BFAE1-4C90-11d1-82D7-0004AC368519), // CLSID_Vim
|
|
39 helpstring("Vim OLE Interface")
|
|
40 ]
|
|
41 coclass Vim
|
|
42 {
|
|
43 [default] interface IVim;
|
|
44 };
|
|
45 };
|