MCPcopy Create free account
hub / github.com/NtQuery/Scylla / updateImportInTreeView

Method updateImportInTreeView

Scylla/ImportsHandling.cpp:418–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418void 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
445void ImportsHandling::updateModuleInTreeView(const ImportModuleThunk * importThunk, CTreeItem item)
446{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected