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.

35 lines
824 B

  1. //------------------------------------------------------------------------------------------
  2. // CFileManager.h
  3. //
  4. // A managing map files.
  5. //
  6. // Created By: aarayas
  7. //
  8. // History: 01/12/2001
  9. //
  10. //------------------------------------------------------------------------------------------
  11. #ifndef _CFILEMANAGER_H_
  12. #define _CFILEMANAGER_H_
  13. #include "FileManager.h"
  14. class CFileManager
  15. {
  16. public:
  17. CFileManager();
  18. ~CFileManager();
  19. bool Load(const WCHAR*, void**, unsigned int*);
  20. bool MovePointer(DWORD);
  21. bool CreateFile(const WCHAR*,bool);
  22. bool Write(const void*,DWORD);
  23. bool Read(void*,DWORD);
  24. bool Close();
  25. private:
  26. bool m_fFileOpen;
  27. HANDLE m_hFile;
  28. HANDLE m_hFileMap;
  29. DWORD m_dwFileSize1; // File size low
  30. DWORD m_dwFileSize2; // File files high
  31. void* m_pMem;
  32. };
  33. #endif