Go to the source code of this file.
| bool mahaf_IsPhysicalMappingDangerous |
( |
| ) |
|
- Returns
- whether mapping physical memory is known to be dangerous on this platform.
callable before or after mahaf_Init.
note: mahaf_MapPhysicalMemory will complain if it is called despite this function having returned true.
Definition at line 111 of file mahaf.cpp.
| volatile void* mahaf_MapPhysicalMemory |
( |
uintptr_t |
physicalAddress, |
|
|
size_t |
numBytes |
|
) |
| |
| u64 mahaf_ReadModelSpecificRegister |
( |
u64 |
reg | ) |
|
| u64 mahaf_ReadPerformanceMonitoringCounter |
( |
u64 |
reg | ) |
|
| u16 mahaf_ReadPort16 |
( |
u16 |
port | ) |
|
| u32 mahaf_ReadPort32 |
( |
u16 |
port | ) |
|
| u8 mahaf_ReadPort8 |
( |
u16 |
port | ) |
|
| void mahaf_UnmapPhysicalMemory |
( |
volatile void * |
virtualAddress | ) |
|
| void mahaf_WriteModelSpecificRegister |
( |
u64 |
reg, |
|
|
u64 |
value |
|
) |
| |
| void mahaf_WritePort16 |
( |
u16 |
port, |
|
|
u16 |
value |
|
) |
| |
| void mahaf_WritePort32 |
( |
u16 |
port, |
|
|
u32 |
value |
|
) |
| |
| void mahaf_WritePort8 |
( |
u16 |
port, |
|
|
u8 |
value |
|
) |
| |
| static SC_HANDLE OpenServiceControlManager |
( |
DWORD |
access | ) |
|
|
static |
| static u32 ReadPort |
( |
u16 |
port, |
|
|
u8 |
numBytes |
|
) |
| |
|
static |
| static void UninstallDriver |
( |
| ) |
|
|
static |
| static void WritePort |
( |
u16 |
port, |
|
|
u32 |
value, |
|
|
u8 |
numBytes |
|
) |
| |
|
static |
| HANDLE hAken = INVALID_HANDLE_VALUE |
|
static |