AuroraRuntime/Include/Aurora/Process/IProcessSectionView.hpp
Reece Wilson 4671664396 [+] IProcessSectionView::AllocateEx
[+] IProcessSectionView::AllocateEx2
[+] IProcessSectionView::MapFileByPathEx
[+] IProcessSectionView::MapFileByObjectEx
[+] IProcessSectionView::MapIPCMemoryEx
[+] IProcessSectionView::GetAllocations
[+] ReserveAddressSpace(AuUInt uLength)
[*] Modified default value of: PageTable::NX
2022-09-30 23:47:18 +01:00

68 lines
3.8 KiB
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IProcessSectionView.hpp
Date: 2022-08-09
Author: Reece
***/
#pragma once
namespace Aurora::Process
{
struct IProcessSectionMapView;
struct IProcessSectionView
{
virtual AuSPtr<IProcessSectionMapView> Allocate(AuUInt uLength) = 0;
virtual AuSPtr<IProcessSectionMapView> AllocateEx(AuUInt uLength,
AuUInt uOffset) = 0;
virtual AuSPtr<IProcessSectionMapView> AllocateEx2(AuUInt uLength,
AuUInt uOffset,
PageTable permissions) = 0;
virtual AuSPtr<IProcessSectionMapView> MapFileByPath(const AuString &str,
AuUInt64 uOffset,
AuUInt uLength,
Aurora::IO::FS::EFileOpenMode mode,
Aurora::IO::FS::EFileAdvisoryLockLevel processLockLevel) = 0;
virtual AuSPtr<IProcessSectionMapView> MapFileByPathEx(AuUInt uViewOffset,
const AuString &str,
AuUInt64 uOffset,
AuUInt uLength,
Aurora::IO::FS::EFileOpenMode mode,
Aurora::IO::FS::EFileAdvisoryLockLevel processLockLevel) = 0;
virtual AuSPtr<IProcessSectionMapView> MapFileByObject(const AuSPtr<Aurora::IO::FS::IFileStream> &pStream,
AuUInt64 uOffset,
AuUInt uLength,
Aurora::IO::FS::EFileOpenMode mode,
Aurora::IO::FS::EFileAdvisoryLockLevel processLockLevel) = 0;
virtual AuSPtr<IProcessSectionMapView> MapFileByObjectEx(AuUInt uViewOffset,
const AuSPtr<Aurora::IO::FS::IFileStream> &pStream,
AuUInt64 uOffset,
AuUInt uLength,
Aurora::IO::FS::EFileOpenMode mode,
Aurora::IO::FS::EFileAdvisoryLockLevel processLockLevel) = 0;
virtual AuSPtr<IProcessSectionMapView> MapIPCMemory(const AuString &handleString,
AuUInt64 uOffset,
AuUInt uLength,
Aurora::IO::FS::EFileOpenMode mode) = 0;
virtual AuSPtr<IProcessSectionMapView> MapIPCMemoryEx(AuUInt uViewOffset,
const AuString &handleString,
AuUInt64 uOffset,
AuUInt uLength,
Aurora::IO::FS::EFileOpenMode mode) = 0;
virtual AuList<AuPair<AuUInt, AuUInt>> GetAllocations() = 0;
};
AUKN_SYM AuSPtr<IProcessSectionView> GetGlobalProcessSpace();
AUKN_SYM AuSPtr<IProcessSectionView> ReserveAddressSpace(AuUInt uLength);
}