Sign in to follow this  
Followers 0
EmkioA

C++ to AutoIT conversion

4 posts in this topic

Hi, i have an code sample in C++

//Detect if long mode is available by checking bit 29 in EDX when calling 
//CPUID Extended Processor Info and Feature Bits.
int results[4];//eax, ebx, ecx & edx
BOOL 64bit;
__cpuid(results,0x80000001);
if(results[3]&29) 64bit=TRUE; else 64bit=FALSE;

i have no idea how to convert it in AutoIT is it possible?

TY

EmkioA

Share this post


Link to post
Share on other sites



There seems little point in converting this to AutoIt,

because the devs created the @CPUArch macro:

$64bit = False
If @CPUArch = "X64" Then $64bit = True

Share this post


Link to post
Share on other sites

Realy...

I LOVE YOU!

(i know we dont know each other)

Thank you very much!

EmkioA

Share this post


Link to post
Share on other sites

Luke, that's your father.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0