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.

79 lines
1.2 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved.
  3. Module Name:
  4. Wsbdbses.h
  5. Abstract:
  6. The CWsbDbSes class.
  7. Author:
  8. Ron White [ronw] 20-Jun-1997
  9. Revision History:
  10. --*/
  11. #ifndef _WSBDBSES_
  12. #define _WSBDBSES_
  13. #include "wsbdb.h"
  14. #include "wsbdbses.h"
  15. /*++
  16. Class Name:
  17. CWsbDbSession
  18. Class Description:
  19. A data base session object.
  20. --*/
  21. class CWsbDbSession :
  22. public CComObjectRoot,
  23. public IWsbDbSession,
  24. public IWsbDbSessionPriv
  25. {
  26. friend class CWsbDb;
  27. public:
  28. CWsbDbSession() {}
  29. BEGIN_COM_MAP(CWsbDbSession)
  30. COM_INTERFACE_ENTRY(IWsbDbSession)
  31. COM_INTERFACE_ENTRY(IWsbDbSessionPriv)
  32. END_COM_MAP()
  33. // CComObjectRoot
  34. public:
  35. STDMETHOD(FinalConstruct)(void);
  36. void FinalRelease(void);
  37. // IWsbDbSession
  38. public:
  39. STDMETHOD(TransactionBegin)(void);
  40. STDMETHOD(TransactionCancel)(void);
  41. STDMETHOD(TransactionEnd)(void);
  42. // IWsbDbSessionPriv
  43. STDMETHOD(Init)(JET_INSTANCE *pInstance);
  44. STDMETHOD(GetJetId)(JET_SESID *pSessionId);
  45. // Data
  46. protected:
  47. JET_SESID m_SessionId; // Jet session ID
  48. };
  49. #endif // _WSBDBSES_