home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / perhist.idl < prev    next >
Text File  |  1998-04-25  |  2KB  |  70 lines

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  Microsoft Windows
  4. //  Copyright 1992 - 1998 Microsoft Corporation.
  5. //
  6. //  File:       perhist.idl
  7. //
  8. //  Contents:   IPersistHistory interfaces
  9. //
  10. //  Classes:
  11. //
  12. //  Functions:
  13. //
  14. //  History:    04-11-97   DBau (David Bau)   Created
  15. //
  16. //----------------------------------------------------------------------------
  17. cpp_quote("//=--------------------------------------------------------------------------=")
  18. cpp_quote("// perhist.h")
  19. cpp_quote("//=--------------------------------------------------------------------------=")
  20. cpp_quote("// Copyright 1995 - 1998 Microsoft Corporation.  All Rights Reserved.")
  21. cpp_quote("//")
  22. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  23. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  24. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  25. cpp_quote("// PARTICULAR PURPOSE.")
  26. cpp_quote("//=--------------------------------------------------------------------------=")
  27. cpp_quote("")
  28. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  29. cpp_quote("")
  30. cpp_quote("//---------------------------------------------------------------------------=")
  31. cpp_quote("// IPersistHistory Interface.")
  32. cpp_quote("")
  33.  
  34. import "objidl.idl";
  35. import "oleidl.idl";
  36.  
  37. interface IPersistHistory;
  38.  
  39. //+---------------------------------------------------------------------------
  40. //
  41. //  Copyright 1995 - 1998 Microsoft Corporation.
  42. //
  43. //  Contents:  IPersistHistory interface definition
  44. //
  45. //----------------------------------------------------------------------------
  46.  
  47. cpp_quote("#ifndef _LPPERSISTHISTORY_DEFINED")
  48. cpp_quote("#define _LPPERSISTHISTORY_DEFINED")
  49.  
  50. [object, uuid(91A565C1-E38F-11d0-94BF-00A0C9055CBF), pointer_default(unique)]
  51. interface IPersistHistory : IPersist
  52. {
  53.     typedef [unique] IPersistHistory *LPPERSISTHISTORY;
  54.  
  55.     HRESULT LoadHistory(
  56.             [in]IStream *pStream,
  57.             [in]IBindCtx *pbc);
  58.             
  59.     HRESULT SaveHistory(
  60.             [in]IStream *pStream);
  61.             
  62.     HRESULT SetPositionCookie(
  63.             [in]DWORD dwPositioncookie);
  64.             
  65.     HRESULT GetPositionCookie(
  66.             [out]DWORD *pdwPositioncookie);
  67. }
  68.  
  69. cpp_quote("#endif")
  70.