Home

Awesome

IDA_PHNT_TYPES

Converted phnt (Native API header files from the System Informer project) to IDA TIL, IDC (Hex-Rays).<br/> To import "phnt" types and function definitions to IDA and help with Reverse Engineering.<br/>

Using

Generated Converted Output

IDA IDC "phnt" Type Information Scripts

IDA TIL "phnt" Type Information Libraries

Compilation Commands

Make sure that the appropriate version of Windows SDK (Windows 11 SDK) is installed (use Visual Studio installer).<br/> Copy idaclang.exe to your "IDA Instalation Dir", e.g., "C:\Program Files\IDA Pro 8.4".<br/>

To generate IDA TIL "phnt" Type Information Libraries:

phnt_win11.til: <br/> .\idaclang.exe -target i386-pc-win32 -x c++ -I"C:\Users\User\Desktop\IDA_PHNT_TYPES\phnt" --idaclang-tildesc "PHNT Native API Header Files (Windows 11)" --idaclang-tilname "phnt_win11.til" phnt_include.h<br/>

phnt64_win11.til: <br/> .\idaclang.exe -target x86_64-pc-win32 -x c++ -I"C:\Users\User\Desktop\IDA_PHNT_TYPES\phnt" --idaclang-tildesc "PHNT Native API Header Files (Windows 11 x64)" --idaclang-tilname "phnt64_win11.til" phnt_include.h<br/>

Check types in TIL: <br/> Copy tilib64.exe to your "IDA Instalation Dir", e.g., "C:\Program Files\IDA Pro 8.4".<br/> .\tilib64.exe -l .\phnt_win11.til<br/> .\tilib64.exe -l .\phnt64_win11.til<br/> <br/>

To generate IDA IDC "phnt" Type Information Scripts:

Very similar like above but using the IDA UI, setting the Options->Compiler (Source parser=clang, target, included directories).<br/> IDA-> Load File-> Parse C header file (phnt_include.h)<br/> IDA-> Produce file -> Dump typeinfo to IDC file<br/> <br/>

BEFORE vs. AFTER

<br/>

License

NO :grin:<br/> <br/> <br/><br/>

Reference