Plugin2.idl
上传用户:easylife05
上传日期:2007-02-14
资源大小:393k
文件大小:2k
- // Plugin2.idl : Plugin2 的 IDL 源
- //
- // 此文件将由 MIDL 工具处理以
- // 产生类型库 (Plugin2.tlb) 和封送处理代码。
- //import "../plugin2/plugin2.idl"
- import "oaidl.idl";
- import "ocidl.idl";
- [
- object,
- uuid(366A1C18-E58F-49E2-807F-AAEB05A93AEB),
- helpstring("IPlugin 接口"),
- pointer_default(unique)
- ]
- interface IPlugin : IUnknown{
- [helpstring("方法GetFunctionCount")] HRESULT GetFunctionCount([out] SHORT* pCount);
- [helpstring("方法DoFunction")] HRESULT DoFunction([in] SHORT index);
- [helpstring("方法GetFunctionName")] HRESULT GetFunctionName([in] SHORT index, [out] CHAR* name);
- [helpstring("方法GetPluginName")] HRESULT GetPluginName([out] CHAR* name);
- [helpstring("方法SendMouseMessage")] HRESULT SendMouseMessage(UINT Message, UINT flags, int x, int y);
- [helpstring("方法PassHDC")] HRESULT PassHDC(HDC hDC);
- [helpstring("方法PassHWND")] HRESULT PassHWND(HWND mHWND);
- [helpstring("方法SetServer")] HRESULT SetServer(IUnknown* iServer);
- [helpstring("方法ReDraw")] HRESULT ReDraw(void);
- [helpstring("方法GetToolBarBitmap")] HRESULT GetToolBarBitmap([out] HBITMAP* hBitmap);
- };
- [
- uuid(5388C5A8-E2BC-4646-8877-7DB515DC36F4),
- version(1.0),
- helpstring("Plugin2 1.0 类型库")
- ]
- library Plugin2Lib
- {
- importlib("stdole2.tlb");
- [
- uuid(1C62E8F6-3A0C-46C8-8A34-D6B64C167A43),
- helpstring("_IPlugin事件接口")
- ]
- dispinterface _IPluginEvents
- {
- properties:
- methods:
- };
- [
- uuid(37FB9DC4-2CC1-482E-8166-B4075D77EBF4),
- helpstring("Plugin Class")
- ]
- coclass Plugin
- {
- [default] interface IPlugin;
- [default, source] dispinterface _IPluginEvents;
- };
- };