Jump to content
Sign in to follow this  
Kogmedia

Windows X32 but returning X64 due to processor...

Recommended Posts

DW1

doesn't 64 bit Vista use a different registry editor.... 64 bit regedit.... can you detect the presence of this file? (Im sorry if im no help, I do not have Vista (thank god))

Share this post


Link to post
Share on other sites
Kogmedia

Vista uses standard regedit ...

I don't know where the key for OSArch is held in registry

My work around...

If StringInStr(@ProgramFilesDir,"(x86)") Then 
    $OSVesion = 'X64'; OS is 64bit
Else
    $OSVesion = 'X86' OS is 32bit
EndIf

MsgBox(0,"",$OSVesion)
Edited by Kogmedia

[font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search

Share this post


Link to post
Share on other sites
DW1

Don't know how to get it to AutoIt but this does what you want

BOOL Is64BitProcessRunningOn64BitWindows()

{

return TRUE;

}

____________________

ALSO

--------------------------------

BOOL Is64BitWindows()

{

#if defined(_WIN64)

return TRUE; // 64-bit programs run only on Win64

#elif defined(_WIN32)

// 32-bit programs run on both 32-bit and 64-bit Windows

// so must sniff

BOOL f64 = FALSE;

return IsWow64Process(GetCurrentProcess(), &f64) && f64;

#else

return FALSE; // Win64 does not support Win16

#endif

}

Edited by danwilli

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.