#include <LibSymbolInfo.h>
Definition at line 65 of file LibSymbolInfo.h.
MEMORY_MAPPED_FILE::MEMORY_MAPPED_FILE |
( |
PSTR |
pszFileName | ) |
|
Definition at line 201 of file LibSymbolInfo.cpp.
207 m_hFile = INVALID_HANDLE_VALUE;
209 m_pMemoryMappedFileBase = 0;
213 m_hFile = CreateFile(pszFileName, GENERIC_READ, FILE_SHARE_READ, NULL,
214 OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, (HANDLE)0);
216 if ( m_hFile == INVALID_HANDLE_VALUE )
223 m_hFileMapping = CreateFileMapping(m_hFile,NULL, PAGE_READONLY, 0, 0,NULL);
224 if ( m_hFileMapping == 0 )
227 CloseHandle(m_hFile);
228 m_hFile = INVALID_HANDLE_VALUE;
232 m_pMemoryMappedFileBase = (PCHAR)MapViewOfFile( m_hFileMapping,
233 FILE_MAP_READ, 0, 0, 0);
234 if ( m_pMemoryMappedFileBase == 0 )
237 CloseHandle(m_hFileMapping);
239 CloseHandle(m_hFile);
240 m_hFile = INVALID_HANDLE_VALUE;
MEMORY_MAPPED_FILE::~MEMORY_MAPPED_FILE |
( |
void |
| ) |
|
Definition at line 247 of file LibSymbolInfo.cpp.
250 if ( m_pMemoryMappedFileBase )
251 UnmapViewOfFile( m_pMemoryMappedFileBase );
253 if ( m_hFileMapping )
254 CloseHandle( m_hFileMapping );
256 if ( m_hFile != INVALID_HANDLE_VALUE )
257 CloseHandle( m_hFile );
MEMORY_MAPPED_FILE::MEMORY_MAPPED_FILE |
( |
PSTR |
pszFileName | ) |
|
MEMORY_MAPPED_FILE::~MEMORY_MAPPED_FILE |
( |
void |
| ) |
|
PVOID MEMORY_MAPPED_FILE::GetBase |
( |
void |
| ) |
|
|
inline |
Definition at line 71 of file LibSymbolInfo.h.
71 {
return m_pMemoryMappedFileBase; }
PVOID MEMORY_MAPPED_FILE::GetBase |
( |
void |
| ) |
|
|
inline |
Definition at line 86 of file genwindef.cc.
86 {
return m_pMemoryMappedFileBase; }
errMMF MEMORY_MAPPED_FILE::GetErrorType |
( |
| ) |
|
|
inline |
errMMF MEMORY_MAPPED_FILE::GetErrorType |
( |
| ) |
|
|
inline |
DWORD MEMORY_MAPPED_FILE::GetFileSize |
( |
void |
| ) |
|
|
inline |
DWORD MEMORY_MAPPED_FILE::GetFileSize |
( |
void |
| ) |
|
|
inline |
BOOL MEMORY_MAPPED_FILE::IsValid |
( |
void |
| ) |
|
|
inline |
BOOL MEMORY_MAPPED_FILE::IsValid |
( |
void |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: