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.

58 lines
2.1 KiB

  1. // Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved.
  2. // -----------------------------------------------------------------------
  3. // Microsoft Distributed Transaction Coordinator (Microsoft Confidential)
  4. // @doc
  5. // @module ILOGWRTA.H | Header for interface <i ILogWriteAsynch>.<nl><nl>
  6. // Usage:<nl>
  7. // Clients of this DLL require this file.
  8. // @rev 0 | 06/02/95 | rbarnes | Cloned: For LOGMGR.DLL
  9. // -----------------------------------------------------------------------
  10. #ifndef _ILGWRTA_H
  11. # define _ILGWRTA_H
  12. // ===============================
  13. // INCLUDES:
  14. // ===============================
  15. #include <objbase.h>
  16. #include "logrec.h" // logmgr general types
  17. class CAsynchSupport; //forward class declaration
  18. // ===============================
  19. // INTERFACE: ILogWriteAsynch
  20. // ===============================
  21. // TODO: In the interface comments, update the description.
  22. // TODO: In the interface comments, update the usage.
  23. // -----------------------------------------------------------------------
  24. // @interface ILogWriteAsynch | See also <c CILogWriteAsynch>.<nl><nl>
  25. // Description:<nl>
  26. // Provide append functionality<nl><nl>
  27. // Usage:<nl>
  28. // Useless, but for an example.
  29. // -----------------------------------------------------------------------
  30. DECLARE_INTERFACE_ (ILogWriteAsynch, IUnknown)
  31. {
  32. // @comm IUnknown methods: See <c CILogWriteAsynch>.
  33. STDMETHOD (QueryInterface) (THIS_ REFIID i_riid, LPVOID FAR* o_ppv) PURE;
  34. STDMETHOD_ (ULONG, AddRef) (THIS) PURE;
  35. STDMETHOD_ (ULONG, Release) (THIS) PURE;
  36. // @comm ILogWriteAsynch methods: See <c CILogWriteAsynch>.
  37. STDMETHOD (Init) (ULONG cbMaxOutstandingWrites) PURE;
  38. STDMETHOD (AppendAsynch) (LOGREC* lgrLogRecord, LRP* plrpLRP, CAsynchSupport* pCAsynchSupport,BOOL fFlushHint,ULONG* pulAvailableSpace) PURE;
  39. STDMETHOD (SetCheckpoint) (LRP lrpLatestCheckpoint,CAsynchSupport* pCAsynchSupport, LRP* plrpCheckpointLogged) PURE;
  40. };
  41. #endif _ILGWRTA_H