Wow6432Node Determining 64 "bit ness"

Discussion in 'Windows 64bit' started by Rob Smitter, Sep 21, 2005.

  1. Rob Smitter

    Rob Smitter Guest

    I have written an application that determined if an OS was 64 bit version by
    looking for the Wow6432Node in the registry. Then I ran across a stumbling
    block. A windows 2000 machine had these in it.

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Emulex]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Emulex\AutoPilot Installer]
    "PortRunning"="TRUE"


    It appears that Emulex:

    http://www.emulex.com/press/2005/0131-01.html

    must put this in there.

    Is there are "unspoken rule" about the Wow6432Node use. Is there a better
    way to determine 64 bitted ness on a remote machine (not able to use WMI
    either - a requirement I was given)


    Thanks,

    Rick
    Rob Smitter, Sep 21, 2005
    #1
    1. Advertising

  2. Hello Rob,
    You should be able to query the value of the PROCESSOR_ARCHITECTURE
    registry entry.

    The following article talks about PROCESSOR_IDENTIFIER to identify the
    processor as will as PROCESSOR_ARCHITECTURE to identify the architecture of
    the platform of Windows.
    888731 How to determine the type of processor that your Windows Server 2003
    http://support.microsoft.com/?id=888731

    Thanks,
    Darrell Gorter[MSFT]

    This posting is provided "AS IS" with no warranties, and confers no rights
    --------------------
    <Reply-To: "Rob Smitter" <>
    <From: "Rob Smitter" <>
    <Subject: Wow6432Node Determining 64 "bit ness"
    <Date: Wed, 21 Sep 2005 13:55:03 -0500
    <Lines: 30
    <X-Priority: 3
    <X-MSMail-Priority: Normal
    <X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
    <X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
    <Message-ID: <>
    <Newsgroups: microsoft.public.windows.64bit.general
    <NNTP-Posting-Host: 65.173.207.2
    <Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
    <Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windows.64bit.general:17909
    <X-Tomcat-NG: microsoft.public.windows.64bit.general
    <
    <I have written an application that determined if an OS was 64 bit version
    by
    <looking for the Wow6432Node in the registry. Then I ran across a stumbling
    <block. A windows 2000 machine had these in it.
    <
    <Windows Registry Editor Version 5.00
    <
    <[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node]
    <
    <[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Emulex]
    <
    <[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Emulex\AutoPilot Installer]
    <"PortRunning"="TRUE"
    <
    <
    <It appears that Emulex:
    <
    <http://www.emulex.com/press/2005/0131-01.html
    <
    <must put this in there.
    <
    <Is there are "unspoken rule" about the Wow6432Node use. Is there a better
    <way to determine 64 bitted ness on a remote machine (not able to use WMI
    <either - a requirement I was given)
    <
    <
    <Thanks,
    <
    <Rick
    <
    <
    <
    Darrell Gorter[MSFT], Sep 21, 2005
    #2
    1. Advertising

  3. I search IsWow64Process API

    http://msdn.microsoft.com/library/en-us/dllproc/base/iswow64process.asp


    #if defined(_M_ALPHA) || defined (_M_MPPC) || defined (_M_MRX000)
    BOOL IsOutdatedRisc()
    {
    return TRUE;
    }

    BOOL IsEmulationWow64()
    {
    return FALSE;
    }

    #else
    BOOL IsOutdatedRisc()
    {
    return FALSE;
    }



    #if !defined(_WIN64)
    typedef BOOL (WINAPI*LPFN_ISWOW64PROCESS) (HANDLE hProcess,PBOOL
    Wow64Process);

    BOOL IsWow64()
    {
    LPFN_ISWOW64PROCESS fnIsWow64Process =
    (LPFN_ISWOW64PROCESS)GetProcAddress(GetModuleHandle("kernel32"),"IsWow64Process");
    BOOL bIsWow64 = FALSE;

    if (NULL != fnIsWow64Process)
    {
    if (!fnIsWow64Process(GetCurrentProcess(),&bIsWow64))
    {
    // handle error
    }
    }
    return bIsWow64;
    }

    BOOL IsEmulationWow64()
    {
    return IsWow64();
    }
    #else
    BOOL IsEmulationWow64()
    {
    return FALSE;
    }
    #endif
    #endif
    Gilles Vollant \(MVP\), Sep 22, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mosfet
    Replies:
    2
    Views:
    458
    mosfet
    Jul 19, 2003
  2. J R
    Replies:
    2
    Views:
    1,023
  3. Replies:
    5
    Views:
    679
  4. sl
    Replies:
    4
    Views:
    4,821
    Darrell Gorter[MSFT]
    Jan 4, 2007
  5. =?Utf-8?B?Y2hyaXM=?=

    wow6432node ! HELP !

    =?Utf-8?B?Y2hyaXM=?=, Jun 8, 2007, in forum: Windows 64bit
    Replies:
    1
    Views:
    1,012
    Darrell Gorter[MSFT]
    Jun 8, 2007
Loading...

Share This Page