home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / chap06 / ianimal / ianimal.idl < prev    next >
Text File  |  1995-05-03  |  685b  |  27 lines

  1. /*
  2.  * IANIMAL.IDL
  3.  *
  4.  * Definition of the IAnimal interface for the MIDL compiler.
  5.  *
  6.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  7.  *
  8.  * Kraig Brockschmidt, Microsoft
  9.  * Internet  :  kraigb@microsoft.com
  10.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  11.  */
  12.  
  13.  
  14. [uuid(0002114a-0000-0000-c000-000000000046),
  15.     object
  16. ]
  17. interface IAnimal : IUnknown
  18.     {
  19.     import "unknwn.idl";
  20.  
  21.     HRESULT Eat([in] LPTSTR pszFoodRecommended
  22.         , [in, out] LPTSTR pszFoodEaten, [in] short cchEaten);
  23.     HRESULT Sleep([in, out] short *pcMinutes);
  24.     HRESULT Procreate([out] short *pcOffspring);
  25.     HRESULT WhatKindOfAnimal([out] IID *pIID);
  26.     }
  27.