ExtendedTools: Add hostname resolve status
@@ -715,7 +715,16 @@ BOOLEAN NTAPI FwTreeNewCallback(
}
break;
case FW_COLUMN_LOCALHOSTNAME:
+ {
+ if (node->LocalHostnameString)
+ {
getCellText->Text = PhGetStringRef(node->LocalHostnameString);
+ }
+ else
+ {
+ PhInitializeStringRef(&getCellText->Text, L"Resolving....");
+ }
+ }
break;
case FW_COLUMN_REMOTEADDRESS:
{
@@ -764,7 +773,16 @@ BOOLEAN NTAPI FwTreeNewCallback(
}
break;
case FW_COLUMN_REMOTEHOSTNAME:
+ {
+ if (node->RemoteHostnameString)
+ {
getCellText->Text = PhGetStringRef(node->RemoteHostnameString);
+ }
+ else
+ {
+ PhInitializeStringRef(&getCellText->Text, L"Resolving....");
+ }
+ }
break;
case FW_COLUMN_PROTOCOL:
{
