Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

  1. // Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved.
  2. // -----------------------------------------------------------------------
  3. // Microsoft Distributed Transaction Coordinator (Microsoft Confidential)
  4. // @doc
  5. // @module ILOGWRITE.H | Header for interface <i ILogWrite>.<nl><nl>
  6. // Usage:<nl>
  7. // Clients of this DLL require this file.
  8. // @rev 0 | 05/09/95 | rbarnes | Cloned: For LOGMGR.DLL
  9. // -----------------------------------------------------------------------
  10. #ifndef _ILGWRITE_H
  11. # define _ILGWRITE_H
  12. // ===============================
  13. // INCLUDES:
  14. // ===============================
  15. #include <objbase.h>
  16. #include "logrec.h" // logmgr general types
  17. // ===============================
  18. // INTERFACE: ILogWrite
  19. // ===============================
  20. // -----------------------------------------------------------------------
  21. // @interface ILogWrite | See also <c CILogWrite>.<nl><nl>
  22. // Description:<nl>
  23. // Provide append functionality<nl><nl>
  24. // Usage:<nl>
  25. // Useless, but for an example.
  26. // -----------------------------------------------------------------------
  27. DECLARE_INTERFACE_ (ILogWrite, IUnknown)
  28. {
  29. // @comm IUnknown methods: See <c CILogWrite>.
  30. STDMETHOD (QueryInterface) (THIS_ REFIID i_riid, LPVOID FAR* o_ppv) PURE;
  31. STDMETHOD_ (ULONG, AddRef) (THIS) PURE;
  32. STDMETHOD_ (ULONG, Release) (THIS) PURE;
  33. // @comm ILogWrite methods: See <c CILogWrite>.
  34. STDMETHOD (Append) (LOGREC* rgLogRecords, ULONG cbNumRecs, LRP *rgLRP,ULONG* pcbNumRecs,LRP* pLRPLastPerm, BOOL fFlushNow,ULONG* pulAvailableSpace) PURE;
  35. STDMETHOD (SetCheckpoint) (LRP lrpLatestCheckpoint) PURE;
  36. };
  37. #endif _ILGWRITE_H