home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / addins / cmdwnd / msdevcmd / devcmd.idl < prev    next >
Text File  |  1998-04-02  |  2KB  |  85 lines

  1. // devcmd.idl : IDL source for devcmd.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (devcmd.tlb) and marshalling code.
  6.  
  7. import "oaidl.idl";
  8. import "ocidl.idl";
  9.     [
  10.         object,
  11.         uuid(B7720295-B6B0-11D1-8320-00A0C91BC942),
  12.         dual,
  13.         helpstring("ICommandWindow Interface"),
  14.         pointer_default(unique)
  15.     ]
  16.     interface ICommandWindow : IDispatch
  17.     {
  18.         [id(1), helpstring("method DoFireClose")] HRESULT DoFireClose();
  19.         [id(2), helpstring("method Open")] HRESULT Open(IDispatch *pDispApplication);
  20.         [id(3), helpstring("method DoClose")] HRESULT DoClose();
  21.         [id(4), helpstring("method SetFocus")] HRESULT SetFocus();
  22.     };
  23.  
  24.     [
  25.         object,
  26.         uuid(B772029a-B6B0-11D1-8320-00A0C91BC942),
  27.         dual,
  28.         helpstring("ICommandWindowEvents"),
  29.         pointer_default(unique)
  30.     ]
  31.     interface ICommandWindowEvents : IDispatch
  32.     {
  33.         [id(1), helpstring("method OnClose")] HRESULT OnClose(); // sent when shinc exits.
  34.     };
  35.  
  36.  
  37.  
  38. ///////////////////////////////////////////////////////////////////////////////
  39.  
  40. [
  41.     uuid(B7720258-B6B0-11D1-8320-00A0C91BC942),
  42.     version(1.0),
  43.     helpstring("devcmd 1.0 Type Library")
  44. ]
  45. library devcmdLib
  46. {
  47.     importlib("stdole32.tlb");
  48.     importlib("stdole2.tlb");
  49.  
  50.     importlib("devshl.dll");
  51.     importlib("ide\devdbg.pkg");
  52.  
  53.  
  54.     [
  55.         uuid(B7720297-B6B0-11D1-8320-00A0C91BC942),
  56.         helpstring("_ICommandWindowEvents Interface")
  57.     ]
  58.     dispinterface _ICommandWindowEvents
  59.     {
  60.         properties:
  61.         methods:
  62.             [id(1), helpstring("method OnClose")] HRESULT OnClose();
  63.     };
  64.  
  65.     [
  66.         uuid(B7720298-B6B0-11D1-8320-00A0C91BC942),
  67.         helpstring("CommandWindowEvents Class")
  68.     ]
  69.     coclass CommandWindowEvents
  70.     {
  71.         [default] interface ICommandWindowEvents;
  72.         [default, source] dispinterface ICommandWindowEvents;
  73.     };
  74.  
  75.     [
  76.         uuid(B7720296-B6B0-11D1-8320-00A0C91BC942),
  77.         helpstring("CommandWindow Class")
  78.     ]
  79.     coclass CommandWindow
  80.     {
  81.         [default] interface ICommandWindow;
  82.         [default, source] dispinterface ICommandWindow;
  83.     };
  84. };
  85.