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.
 
 
 
 
 
 

36 lines
824 B

//------------------------------------------------------------------------------------------
// CFileManager.h
//
// A managing map files.
//
// Created By: aarayas
//
// History: 01/12/2001
//
//------------------------------------------------------------------------------------------
#ifndef _CFILEMANAGER_H_
#define _CFILEMANAGER_H_
#include "FileManager.h"
class CFileManager
{
public:
CFileManager();
~CFileManager();
bool Load(const WCHAR*, void**, unsigned int*);
bool MovePointer(DWORD);
bool CreateFile(const WCHAR*,bool);
bool Write(const void*,DWORD);
bool Read(void*,DWORD);
bool Close();
private:
bool m_fFileOpen;
HANDLE m_hFile;
HANDLE m_hFileMap;
DWORD m_dwFileSize1; // File size low
DWORD m_dwFileSize2; // File files high
void* m_pMem;
};
#endif