home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / commap / commap.idl < prev    next >
Text File  |  1998-03-26  |  2KB  |  90 lines

  1. // COMMap.idl : IDL source for COMMap.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (COMMap.tlb) and marshalling code.
  6.  
  7.     [
  8.         object,
  9.         uuid(4F9A68DF-DD9D-11CF-9462-00AA00BBAD7F),
  10.         dual,
  11.         helpstring("IOuter Interface"),
  12.         pointer_default(unique)
  13.     ]
  14.     interface IOuter : IDispatch
  15.     {
  16.         import "oaidl.idl";
  17.         HRESULT GetName([in] short n, [out, retval] BSTR* pbstrName);
  18.     };
  19.  
  20.     [
  21.         object,
  22.         uuid(9B8A71E7-DB54-11CF-9462-00AA00BBAD7F),
  23.         dual,
  24.         helpstring("ITearOff1 Interface"),
  25.         pointer_default(unique)
  26.     ]
  27.     interface ITearOff1 : IDispatch
  28.     {
  29.         import "oaidl.idl";
  30.         [propget, id(0)] HRESULT Name([out, retval] BSTR* pbstrName);
  31.     };
  32.  
  33.     [
  34.         object,
  35.         uuid(9B8A71E8-DB54-11CF-9462-00AA00BBAD7F),
  36.         dual,
  37.         helpstring("ITearOff2 Interface"),
  38.         pointer_default(unique)
  39.     ]
  40.     interface ITearOff2 : IDispatch
  41.     {
  42.         import "oaidl.idl";
  43.         [propget, id(0)] HRESULT Name([out, retval] BSTR* pbstrName);
  44.     };
  45.  
  46.  
  47.     [
  48.         object,
  49.         uuid(4F9A68E4-DD9D-11CF-9462-00AA00BBAD7F),
  50.         dual,
  51.         helpstring("IChain Interface"),
  52.         pointer_default(unique)
  53.     ]
  54.     interface IChain : IDispatch
  55.     {
  56.         import "oaidl.idl";
  57.         [propget, id(0)] HRESULT Name2([out, retval] BSTR* pbstrName);
  58.     };
  59.  
  60.  
  61.  
  62. [
  63.     uuid(4F9A68DD-DD9D-11CF-9462-00AA00BBAD7F),
  64.     version(1.0),
  65.     helpstring("COMMap 1.0 Type Library")
  66. ]
  67. library COMMAPLib
  68. {
  69.     importlib("stdole32.tlb");
  70.  
  71.     [
  72.         uuid(4F9A68E3-DD9D-11CF-9462-00AA00BBAD7F),
  73.         helpstring("Outer Class")
  74.     ]
  75.     coclass COuter
  76.     {
  77.         [default] interface IOuter;
  78.     };
  79.  
  80.     [
  81.         uuid(4F9A68E8-DD9D-11CF-9462-00AA00BBAD7F),
  82.         helpstring("Chain Class")
  83.     ]
  84.     coclass CChain
  85.     {
  86.         [default] interface IChain;
  87.     };
  88.  
  89. };
  90.