| 35 | #include <../Extern/ReflectiveDLLRefresher/src/ApiSetMap.h> |
| 36 | |
| 37 | _PPEB GetProcessEnvironmentBlock() |
| 38 | { |
| 39 | ULONG_PTR pPeb; |
| 40 | #ifdef _WIN64 |
| 41 | pPeb = __readgsqword(0x60); |
| 42 | #else |
| 43 | #ifdef WIN_ARM |
| 44 | pPeb = *(DWORD *)( (BYTE *)_MoveFromCoprocessor( 15, 0, 13, 0, 2 ) + 0x30 ); |
| 45 | #else _WIN32 |
| 46 | pPeb = __readfsdword(0x30); |
| 47 | #endif |
| 48 | #endif |
| 49 | return (_PPEB)pPeb; |
| 50 | } |
| 51 | |
| 52 | PPEB_LDR_DATA GetInMemoryOrderModuleList() |
| 53 | { |
no outgoing calls
no test coverage detected