home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / src / DQSDTools / DQSDTools.idl < prev    next >
Text File  |  2002-10-23  |  6KB  |  93 lines

  1. // DQSDTools.idl : IDL source for DQSDTools.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (DQSDTools.tlb) and marshalling code.
  6.  
  7. import "oaidl.idl";
  8. import "ocidl.idl";
  9.     [
  10.         object,
  11.         uuid(1A93D4C6-A0B1-41EC-8153-FD7F5500CEA0),
  12.         dual,
  13.         oleautomation,
  14.         helpstring("DQSD Launcher Interface"),
  15.         pointer_default(unique)
  16.     ]
  17.     interface ILauncher : IDispatch
  18.     {
  19.         [id(1), helpstring("Submits form using default browser. Pass a FORM object.")] HRESULT SubmitForm([in] VARIANT idForm);
  20.         [id(2), helpstring("Opens document in associated application. Pass a document URI.")] HRESULT OpenDocument([in] BSTR strDoc, [in,optional] VARIANT* strParameters);
  21.         [propget, id(3), helpstring("Path of default browser executable")] HRESULT pathDefaultBrowser([out, retval] BSTR *pVal);
  22.         [propput, id(4), helpstring("Debug setting")] HRESULT Debug( [in] VARIANT_BOOL bDebug );
  23.         [propget, id(4), helpstring("Debug setting")] HRESULT Debug( [out,retval] VARIANT_BOOL *pbDebug );
  24.         [id(5), helpstring("Return the contents of the specified file as a string")] HRESULT ReadFile([in] BSTR bstrFilename, [out,retval] BSTR* pbstrResult);
  25.         [id(6), helpstring("Write the string to the specified file")] HRESULT WriteFile([in] BSTR bstrFilename, [in] BSTR bstrValue);
  26.         [id(7), helpstring("Get protocol handler for specified protocol")] HRESULT GetProtocolHandler([in] BSTR bstrProtocol, [out,retval] BSTR* pbstrHandler);
  27.         [id(8), helpstring("Get list of files matching file spec")] HRESULT GetFiles([in] BSTR bstrFileSpec, [out,retval] BSTR* pbstrFiles);
  28.         [id(9), helpstring("Install the keyboard hook which provides full key support (DEL, arrows, etc)")] HRESULT InstallKeyboardHook([in] LPDISPATCH pDispDocument);
  29.         [id(10), helpstring("Register a key to be used with the Windows key to jump to the DQSD bar")] HRESULT RegisterHotKey([in] long hotkeyVkCode, [in] BSTR bstrModifierName, [in] LPDISPATCH pDispDocument);
  30.         [id(11), helpstring("Map a virtual key code to a character code to be sent to the DQSD bar")] HRESULT MapKeyCode(long lVKCode, long lCharCode);
  31.         [propget, id(12), helpstring("Check if the DLL is of at least the specified version")] HRESULT VersionIsCorrect(int v1, int v2, int v3, int v4, [out, retval] VARIANT_BOOL *pVal);
  32.         [id(14), helpstring("method ShutdownBar")] HRESULT ShutdownBar([in] LPDISPATCH pDispDocument);
  33.         [id(15), helpstring("Attempt to refresh taskbar tray icons")] HRESULT RefreshTrayIcons();
  34.         [propget, id(16), helpstring("property InstallationDirectory")] HRESULT InstallationDirectory([out,retval] BSTR *pbstrDirectory);
  35.         [id(17), helpstring("method GetSpecialFolderLocation")] HRESULT GetSpecialFolderLocation([in] BSTR bstrSpecialFolder, [out,retval] BSTR* pbstrLocation);
  36.         [id(18), helpstring("method GetFolders")] HRESULT GetFolders([in] BSTR bstrBaseFolder, [out,retval] BSTR* pbstrFolders);
  37.     };
  38.     [
  39.         object, 
  40.         uuid(C20983D5-DFC2-4C10-8267-E23217466E28),
  41.         dual,
  42.         helpstring("IMenuBuilder Interface"),
  43.         pointer_default(unique)
  44.     ]
  45.     interface IMenuBuilder : IDispatch
  46.     {
  47.         [id(1), helpstring("method Display")] HRESULT Display( [in] LPDISPATCH pDispDocument, [out,retval] VARIANT* pvarSelection);
  48.         [id(2), helpstring("method AppendMenuItem")] HRESULT AppendMenuItem([in] BSTR bstrItem, [in] BSTR bstrKey, [in] BSTR bstrToolTip, [in,optional] VARIANT* hmenu);
  49.         [id(3), helpstring("method AppendSubMenu")] HRESULT AppendSubMenu([in] BSTR bstrName, [in,optional] VARIANT* hParentMenu, [out,retval] long* phmenu);
  50.         [id(4), helpstring("method AppendSeparator")] HRESULT AppendSeparator([in,optional] VARIANT* pvParentMenu);
  51.         [propget, id(5), helpstring("property HorizontalAlignment")] HRESULT HorizontalAlignment([out, retval] short *pVal);
  52.         [propput, id(5), helpstring("property HorizontalAlignment")] HRESULT HorizontalAlignment([in] short newVal);
  53.         [id(6), helpstring("method InitialiseTooltips")] HRESULT InitialiseTooltips([in] long displayTimeMultiplier);
  54.         [id(7), helpstring("method InsertMenuItem")] HRESULT InsertMenuItem([in] BSTR bstrItem, [in] BSTR bstrKey, [in] BSTR bstrToolTip, [in] UINT position, [in,optional] VARIANT* hmenu);
  55.         [id(8), helpstring("method InsertSeparator")] HRESULT InsertSeparator([in] UINT position, [in,optional] VARIANT* hParentMenu);
  56.         [id(9), helpstring("method InsertSubMenu")] HRESULT InsertSubMenu([in] BSTR bstrName, [in] UINT position, [in,optional] VARIANT* hParentMenu, [out,retval] long* phmenu);
  57.         [id(10), helpstring("method GetMenuItemCount")] HRESULT GetMenuItemCount([in,optional] VARIANT* hParentMenu, [out,retval] long* pCount);
  58.         [id(11), helpstring("method FindSubMenu")] HRESULT FindSubMenu([in] BSTR bstrName, [in,optional] VARIANT* hParentMenu, [out,retval] long* phmenu);
  59.         [id(12), helpstring("method FindMenuItem")] HRESULT FindMenuItem([in] BSTR bstrName, [in,optional] VARIANT* hParentMenu, [out,retval] long* pPosition);
  60.         [id(13), helpstring("method GetMenuString")] HRESULT GetMenuString([in] UINT position, [in,optional] VARIANT* hParentMenu, [out, retval] BSTR* pbstrResult);
  61.         [id(14), helpstring("method GetMenuItemID")] HRESULT GetMenuItemID([in] UINT position, [in,optional] VARIANT* hParentMenu, [out, retval] long* nID);
  62.         [id(15), helpstring("method EnableMenuItem")] HRESULT EnableMenuItem([in] UINT position, [in,optional] VARIANT* hParentMenu);
  63.         [id(16), helpstring("method DisableMenuItem")] HRESULT DisableMenuItem([in] UINT position, [in,optional] VARIANT* hParentMenu);
  64.     };
  65.  
  66. [
  67.     uuid(4323AAF6-488C-4921-A605-6E22E13332E4),
  68.     version(1.0),
  69.     helpstring("Dave's Quick Search Deskbar Tools 1.0 Library")
  70. ]
  71. library DQSDTOOLSLib
  72. {
  73.     importlib("stdole32.tlb");
  74.     importlib("stdole2.tlb");
  75.  
  76.     [
  77.         uuid(FA8211C1-F85B-4CCD-8C51-1587A37E566A),
  78.         helpstring("DQSD Launcher Object")
  79.     ]
  80.     coclass Launcher
  81.     {
  82.         [default] interface ILauncher;
  83.     };
  84.     [
  85.         uuid(A045AB88-C1A6-43A6-8C53-3D7F08F11F5F),
  86.         helpstring("MenuBuilder Class")
  87.     ]
  88.     coclass MenuBuilder
  89.     {
  90.         [default] interface IMenuBuilder;
  91.     };
  92. };
  93.