Jump to content

Windows X32 but returning X64 due to processor...


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...