Go to the source code of this file.
|
| NTSTATUS | BBMapMemory (IN PMAP_MEMORY pRemap, OUT PPROCESS_MAP_ENTRY *ppEntry) |
| | Map entire address space of target process into current More...
|
| |
| NTSTATUS | BBMapMemoryRegion (IN PMAP_MEMORY_REGION pRegion, OUT PMAP_MEMORY_REGION_RESULT pResult) |
| | Map specific memory region More...
|
| |
| NTSTATUS | BBUnmapMemory (IN PUNMAP_MEMORY pUnmap) |
| | Unmap any mapped memory from host and target processes More...
|
| |
| NTSTATUS | BBUnmapMemoryRegion (IN PUNMAP_MEMORY_REGION pRegion) |
| | Unmap specific memory region More...
|
| |
| NTSTATUS | BBGetRequiredRemapOutputSize (IN PLIST_ENTRY pList, OUT PULONG_PTR pSize) |
| | Calculate size required to store mapping info More...
|
| |
| PPROCESS_MAP_ENTRY | BBLookupProcessEntry (IN HANDLE pid, IN BOOLEAN asHost) |
| | Search process entry in list by PID More...
|
| |
| VOID | BBCleanupProcessEntry (IN PPROCESS_MAP_ENTRY pProcessEntry) |
| | Unmap all regions, delete MDLs, close handles, remove entry from table More...
|
| |
| VOID | BBCleanupProcessTable () |
| | Clear global process map table More...
|
| |
| VOID | BBCleanupHostProcess (IN PPROCESS_MAP_ENTRY pProcessEntry) |
| | Unmap any mapped pages from host process More...
|
| |
| RTL_GENERIC_COMPARE_RESULTS | AvlCompare (IN RTL_AVL_TABLE *Table, IN PVOID FirstStruct, IN PVOID SecondStruct) |
| |
| PVOID | AvlAllocate (IN RTL_AVL_TABLE *Table, IN CLONG ByteSize) |
| |
| VOID | AvlFree (IN RTL_AVL_TABLE *Table, IN PVOID Buffer) |
| |
Mapped memory region info
Target - host correspondence
| Enumerator |
|---|
| ContextNone |
|
| ContextHost |
|
| ContextTarget |
|
| PVOID AvlAllocate |
( |
IN RTL_AVL_TABLE * |
Table, |
|
|
IN CLONG |
ByteSize |
|
) |
| |
| RTL_GENERIC_COMPARE_RESULTS AvlCompare |
( |
IN RTL_AVL_TABLE * |
Table, |
|
|
IN PVOID |
FirstStruct, |
|
|
IN PVOID |
SecondStruct |
|
) |
| |
| VOID AvlFree |
( |
IN RTL_AVL_TABLE * |
Table, |
|
|
IN PVOID |
Buffer |
|
) |
| |
Unmap any mapped pages from host process
- Parameters
-
| pProcessEntry | Process entry |
Unmap all regions, delete MDLs, close handles, remove entry from table
- Parameters
-
| pProcessEntry | Process entry |
| VOID BBCleanupProcessTable |
( |
| ) |
|
Clear global process map table
| NTSTATUS BBGetRequiredRemapOutputSize |
( |
IN PLIST_ENTRY |
pList, |
|
|
OUT PULONG_PTR |
pSize |
|
) |
| |
Calculate size required to store mapping info
- Parameters
-
| pList | Mapped regions list |
| pSize | Resulting size |
- Returns
- Status code
Search process entry in list by PID
- Parameters
-
| pid | PID. |
| asHost | If set to TRUE, pid is treated as host PID |
- Returns
- Found entry, NULL in not found
Map entire address space of target process into current
- Parameters
-
| pRemap | Mapping params |
| ppEntry | Mapped context |
- Returns
- Status code
Map entire address space of target process into current
- Parameters
-
| pRemap | Mapping params |
| ppEntry | Mapped context |
- Returns
- Status code
Map specific memory region
- Parameters
-
| pRegion | Region data |
| pResult | Mapping results |
- Returns
- Status code
Unmap any mapped memory from host and target processes
- Parameters
-
- Returns
- Status code
Unmap specific memory region
- Parameters
-
- Returns
- Status ode
| KGUARDED_MUTEX g_globalLock |
| RTL_AVL_TABLE g_ProcessPageTables |