| 239 | return false; |
| 240 | } |
| 241 | LPVOID CDynamicWinapi::GetLdrModule(DWORD_PTR dwAddress) |
| 242 | { |
| 243 | auto pPEB = GetCurrentPEB(); |
| 244 | auto CurrentEntry = pPEB->LoaderData->InLoadOrderModuleList.Flink; |
| 245 | while (CurrentEntry != &pPEB->LoaderData->InLoadOrderModuleList && CurrentEntry != NULL) |
| 246 | { |
| 247 | auto Current = CONTAINING_RECORD(CurrentEntry, _LDR_MODULE, InLoadOrderModuleList); |
| 248 | if (dwAddress == reinterpret_cast<DWORD_PTR>(Current->BaseAddress)) |
| 249 | { |
| 250 | return Current; |
| 251 | } |
| 252 | |
| 253 | CurrentEntry = CurrentEntry->Flink; |
| 254 | } |
| 255 | return nullptr; |
| 256 | } |
| 257 | LPVOID CDynamicWinapi::FindModuleFromAddress(DWORD_PTR dwAddress) |
| 258 | { |
| 259 | auto pPEB = GetCurrentPEB(); |
no test coverage detected