home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 September / CHIPCD_9_99.iso / software / uaktualnienia / OptionPackPL / iis4_07.cab / catlpwr.idl < prev    next >
Text File  |  1998-04-27  |  1KB  |  56 lines

  1. // CATLPwr.idl : IDL source for CATLPwr.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (CATLPwr.tlb) and marshalling code.
  6.  
  7.     [
  8.         object,
  9.         uuid(61CECB3A-68D3-11D0-8AE3-00C0F00AE35A),
  10.         dual,
  11.         helpstring("IPower Interface"),
  12.         pointer_default(unique),
  13.         oleautomation
  14.     ]
  15.     interface IPower : IDispatch
  16.     {
  17.         import "oaidl.idl";
  18.  
  19.         [id(1), propget, helpstring("Get MyProperty's value")]
  20.         HRESULT myProperty([out,retval] BSTR* pbstrOutValue);
  21.  
  22.         [id(1), propput, helpstring("Set MyProperty's value")]
  23.         HRESULT myProperty([in] BSTR bstrInValue); 
  24.  
  25.         [id(2), helpstring("Convert argument to uppercase")]
  26.         HRESULT myMethod([in] BSTR bstrIn, [out, retval] BSTR* pbstrOut);
  27.  
  28.         [id(3), propget, helpstring("Return the script's name")]
  29.         HRESULT myPowerProperty([out,retval] BSTR* pbstrOutValue);
  30.  
  31.         [id(4), helpstring("Write message according to browser")]
  32.         HRESULT myPowerMethod();
  33.     };
  34.  
  35.  
  36.  
  37. [
  38.     uuid(61CECB38-68D3-11D0-8AE3-00C0F00AE35A),
  39.     version(1.0),
  40.     helpstring("IISSample CATLPwr Object Library")
  41. ]
  42. library CATLPwr
  43. {
  44.     importlib("stdole32.tlb");
  45.  
  46.     [
  47.         uuid(61CECB3E-68D3-11D0-8AE3-00C0F00AE35A),
  48.         helpstring("Power Class")
  49.     ]
  50.     coclass CPower
  51.     {
  52.         [default] interface IPower;
  53.     };
  54.  
  55. };
  56.