TransWikia.com

IDA Pro SDK APIs inf.is_64bit() and inf.is_32bit() are not working as expected!

Reverse Engineering Asked by Pocanatos on September 3, 2021

As per this already answered question How to get the CPU architecture via Idapython?, for reasons I’m unable to figure out, both inf.is_64bit() and inf.is_32bit() are not working for me. I’m using IDA C++ SDK v7.1. Even if the executable in the database is 64-bit, it still goes through the 32-bit check. Any idea why this is happening?

One Answer

I figured it out. To determine if the binary is

  • 32-bit: (inf.is_32bit() && !inf.is_64bit())
  • 64-bit: (inf.is_64bit() && inf.is_32bit())

Answered by Pocanatos on September 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP