peview: Add PE Image Machine Type support ARM64 and Hybrid PE
@@ -421,6 +421,16 @@ VOID PvpSetPeImageVersionInfo(
PhDereferenceObject(string);
}
+
+#ifndef IMAGE_FILE_MACHINE_ARM64
+#define IMAGE_FILE_MACHINE_ARM64 0xAA64 // ARM64 Little-Endian
+#endif
+
+#ifndef IMAGE_FILE_MACHINE_CHPE_X86
+#define IMAGE_FILE_MACHINE_CHPE_X86 0x3A64 /// defined in ntimage.h
+#endif
+
+
VOID PvpSetPeImageMachineType(
_In_ HWND WindowHandle
)
@@ -441,6 +451,12 @@ VOID PvpSetPeImageMachineType(
case IMAGE_FILE_MACHINE_ARMNT:
type = L"ARM Thumb-2";
break;
+ case IMAGE_FILE_MACHINE_ARM64:
+ type = L"ARM64";
+ break;
+ case IMAGE_FILE_MACHINE_CHPE_X86:
+ type = L"Hybrid PE";
+ break;
default:
type = L"Unknown";
break;
