mirror of
https://github.com/ayoubfaouzi/al-khaser
synced 2026-06-06 15:14:33 +00:00
6925bdcb29
ATAIdentifyDump dumps ATA IDENTIFY data from PhysicalDisk0. StructDumpCodegen is a LINQpad script that quickly generates C++ code for dumping structs.
Struct Dump Codegen
This is a LINQpad script to turn a struct definition into C++ code that prints out its contents. So far it supports USHORT, ULONG, and UCHAR.
This was written specifically for IDENTIFY_DEVICE_DATA in order to speed up writing ATAIdentifyDump.
This can probably be used for similar structs too, so it might be useful elsewhere.