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.

48 lines
1.4 KiB

  1. //---------------------------------------------------------------------------
  2. // EntryIDData.h : CVDEntryIDData header file
  3. //
  4. // Copyright (c) 1996 Microsoft Corporation, All Rights Reserved
  5. // Developed by Sheridan Software Systems, Inc.
  6. //---------------------------------------------------------------------------
  7. #ifndef __CVDENTRYIDDATA__
  8. #define __CVDENTRYIDDATA__
  9. #ifndef VD_DONT_IMPLEMENT_ISTREAM
  10. class CVDEntryIDData
  11. {
  12. protected:
  13. // Construction/Destruction
  14. CVDEntryIDData();
  15. virtual ~CVDEntryIDData();
  16. public:
  17. static HRESULT Create(CVDCursorPosition * pCursorPosition, CVDRowsetColumn * pColumn, HROW hRow, IStream * pStream,
  18. CVDEntryIDData ** ppEntryIDData, CVDResourceDLL * pResourceDLL);
  19. // Reference count
  20. ULONG AddRef();
  21. ULONG Release();
  22. // Updating data
  23. void SetDirty(BOOL fDirty) {m_fDirty = fDirty;}
  24. HRESULT Commit();
  25. protected:
  26. // Data members
  27. DWORD m_dwRefCount; // reference count
  28. CVDCursorPosition * m_pCursorPosition; // backwards pointer to CVDCursorPosition
  29. CVDRowsetColumn * m_pColumn; // rowset column pointer
  30. HROW m_hRow; // row handle
  31. IStream * m_pStream; // data stream pointer
  32. CVDResourceDLL * m_pResourceDLL; // resource DLL
  33. BOOL m_fDirty; // dirty flag
  34. };
  35. #endif //VD_DONT_IMPLEMENT_ISTREAM
  36. #endif //__CVDENTRYIDDATA__