| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
import "oaidl.idl"; |
|---|
| 8 |
import "ocidl.idl"; |
|---|
| 9 |
[ |
|---|
| 10 |
object, |
|---|
| 11 |
uuid(9E204F2D-4F04-11D7-858F-8CA08FF5860C), |
|---|
| 12 |
dual, |
|---|
| 13 |
helpstring("ICSwishCtl Interface"), |
|---|
| 14 |
pointer_default(unique) |
|---|
| 15 |
] |
|---|
| 16 |
interface ICSwishCtl : IDispatch |
|---|
| 17 |
{ |
|---|
| 18 |
[id(1), helpstring("method Init")] HRESULT Init([in] BSTR IndexFiles); |
|---|
| 19 |
[id(2), helpstring("method Error")] HRESULT Error([out,retval] int *errcode); |
|---|
| 20 |
[id(3), helpstring("method Query")] HRESULT Query([in] BSTR words, [out,retval] int *errcode); |
|---|
| 21 |
[id(4), helpstring("method ErrorString")] HRESULT ErrorString([out,retval] BSTR *errstring); |
|---|
| 22 |
[id(5), helpstring("method Hits")] HRESULT Hits([out,retval] int *hits); |
|---|
| 23 |
[id(6), helpstring("method NextResult")] HRESULT NextResult([out,retval] int *more); |
|---|
| 24 |
[id(7), helpstring("method ResultPropertyString")] HRESULT ResultPropertyString([in] BSTR propertyname, [out,retval] BSTR *result); |
|---|
| 25 |
[id(8), helpstring("method Close")] HRESULT Close(); |
|---|
| 26 |
[id(9), helpstring("method SeekResult")] HRESULT SeekResult([in] int position, [out,retval] int *result); |
|---|
| 27 |
[id(10), helpstring("method SetSort")] HRESULT SetSort([in] BSTR sort); |
|---|
| 28 |
[id(11), helpstring("method NewSearch")] HRESULT NewSearch([in] BSTR query, [out,retval] int *errcode); |
|---|
| 29 |
[id(12), helpstring("method Execute")] HRESULT Execute([in] BSTR words, [out,retval] int *errcode); |
|---|
| 30 |
[id(13), helpstring("method SetSearchLimit")] HRESULT SetSearchLimit([in] BSTR propertyname, [in] BSTR low, [in] BSTR hi); |
|---|
| 31 |
}; |
|---|
| 32 |
|
|---|
| 33 |
[ |
|---|
| 34 |
uuid(9E204F21-4F04-11D7-858F-8CA08FF5860C), |
|---|
| 35 |
version(1.0), |
|---|
| 36 |
helpstring("SwishCtl 1.0 Type Library") |
|---|
| 37 |
] |
|---|
| 38 |
library SWISHCTLLib |
|---|
| 39 |
{ |
|---|
| 40 |
importlib("stdole32.tlb"); |
|---|
| 41 |
importlib("stdole2.tlb"); |
|---|
| 42 |
|
|---|
| 43 |
[ |
|---|
| 44 |
uuid(9E204F2E-4F04-11D7-858F-8CA08FF5860C), |
|---|
| 45 |
helpstring("CSwishCtl Class") |
|---|
| 46 |
] |
|---|
| 47 |
coclass CSwishCtl |
|---|
| 48 |
{ |
|---|
| 49 |
[default] interface ICSwishCtl; |
|---|
| 50 |
}; |
|---|
| 51 |
}; |
|---|