| 416 | } |
| 417 | |
| 418 | void ImportsHandling::updateImportInTreeView(const ImportThunk * importThunk, CTreeItem item) |
| 419 | { |
| 420 | if (importThunk->valid) |
| 421 | { |
| 422 | WCHAR tempString[300]; |
| 423 | |
| 424 | if (importThunk->name[0] != 0x00) |
| 425 | { |
| 426 | swprintf_s(tempString, L"ord: %04X name: %S", importThunk->ordinal, importThunk->name); |
| 427 | } |
| 428 | else |
| 429 | { |
| 430 | swprintf_s(tempString, L"ord: %04X", importThunk->ordinal); |
| 431 | } |
| 432 | |
| 433 | swprintf_s(stringBuffer, L" rva: " PRINTF_DWORD_PTR_HALF L" mod: %s %s", importThunk->rva, importThunk->moduleName, tempString); |
| 434 | } |
| 435 | else |
| 436 | { |
| 437 | swprintf_s(stringBuffer, L" rva: " PRINTF_DWORD_PTR_HALF L" ptr: " PRINTF_DWORD_PTR_FULL, importThunk->rva, importThunk->apiAddressVA); |
| 438 | } |
| 439 | |
| 440 | item.SetText(stringBuffer); |
| 441 | Icon icon = getAppropiateIcon(importThunk); |
| 442 | item.SetImage(icon, icon); |
| 443 | } |
| 444 | |
| 445 | void ImportsHandling::updateModuleInTreeView(const ImportModuleThunk * importThunk, CTreeItem item) |
| 446 | { |
nothing calls this directly
no outgoing calls
no test coverage detected