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.

50 lines
1.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // database.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Interface for the CDatabase class
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 02/12/1999 Original version. Thierry Perraut
  16. //
  17. //////////////////////////////////////////////////////////////////////////////
  18. #if !defined(AFX_DATABASE_H__2B7B2F60_C53F_11D2_9E33_00C04F6EA5B6_INCLUDED)
  19. #define AFX_DATABASE_H__2B7B2F60_C53F_11D2_9E33_00C04F6EA5B6_INCLUDED
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. #include "precomp.hpp"
  24. using namespace std;
  25. class CDatabase
  26. {
  27. public:
  28. HRESULT Uninitialize(bool bFatalError);
  29. HRESULT InitializeDB(WCHAR *pDatabasePath);
  30. HRESULT InitializeRowset(WCHAR *pTableName, IRowset **ppRowset);
  31. HRESULT Compact();
  32. private:
  33. ITransactionLocal* m_pITransactionLocal;
  34. IOpenRowset* m_pIOpenRowset;
  35. IDBCreateSession* m_pIDBCreateSession;
  36. IDBInitialize* m_pIDBInitialize;
  37. DBID mTableID;
  38. DBPROPSET mlrgPropSets[1]; // number will not change
  39. DBPROP mlrgProperties[2]; //number will not change
  40. wstring mpDBPath;
  41. };
  42. #endif
  43. // !defined(AFX_DATABASE_H__2B7B2F60_C53F_11D2_9E33_00C04F6EA5B6_INCLUDED)