Reece Wilson
4671664396
[+] IProcessSectionView::AllocateEx2 [+] IProcessSectionView::MapFileByPathEx [+] IProcessSectionView::MapFileByObjectEx [+] IProcessSectionView::MapIPCMemoryEx [+] IProcessSectionView::GetAllocations [+] ReserveAddressSpace(AuUInt uLength) [*] Modified default value of: PageTable::NX
40 lines
1004 B
C++
40 lines
1004 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: ProcessSectionFileMapView.NT.hpp
|
|
Date: 2022-08-09
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::Process
|
|
{
|
|
struct ProcessSectionView;
|
|
|
|
struct ProcessSectionFileMapView : IProcessSectionMapView
|
|
{
|
|
virtual ~ProcessSectionFileMapView();
|
|
ProcessSectionFileMapView(AuUInt uAddress, HANDLE hFileSection);
|
|
|
|
virtual void Unmap() override;
|
|
|
|
virtual bool Flush(AuUInt offset, AuUInt length) override;
|
|
|
|
AuUInt GetBaseAddress() override;
|
|
AuUInt GetAddress(AuUInt offset) override;
|
|
|
|
AuUInt8 *GetBasePointer() override;
|
|
AuUInt8 *GetPointer(AuUInt offset) override;
|
|
|
|
ProcessSectionView *pProcessGlobalHint {};
|
|
AuSPtr<IProcessSectionView> pSharedSectionHint {};
|
|
AuUInt uOffset {};
|
|
AuUInt uLength {};
|
|
|
|
private:
|
|
HANDLE hFileSection {};
|
|
AuUInt uAddress {};
|
|
|
|
bool bIsDead_ {};
|
|
};
|
|
} |