Add module to module list Loaded image Module exports
| 335 | /// <param name="path">Loaded image</param> |
| 336 | /// <param name="exports">Module exports</param> |
| 337 | void MainDlg::AddToModuleList( std::shared_ptr<blackbone::pe::PEImage>& img ) |
| 338 | { |
| 339 | wchar_t* platfom = nullptr; |
| 340 | |
| 341 | // Module platform |
| 342 | if (img->mType() == blackbone::mt_mod32) |
| 343 | platfom = L"32 bit"; |
| 344 | else if (img->mType() == blackbone::mt_mod64) |
| 345 | platfom = L"64 bit"; |
| 346 | else |
| 347 | platfom = L"Unknown"; |
| 348 | |
| 349 | _images.emplace_back( img ); |
| 350 | _modules.AddItem( blackbone::Utils::StripPath( img->path() ), 0, { platfom } ); |
| 351 | } |