Announcement

Collapse
No announcement yet.

Reliable Way To Find SysWow64 folder?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Reliable Way To Find SysWow64 folder?

    Hello everyone,

    Is there a reliable way to find the SysWow64 folder on 64bit installation of Windows? I'm looking for something like GetSystemDirectory and GetWindowsDirectory.

    Will SysWow64 always be in the %WINDIR%\SysWow64\ folder? If so, then concatenating the results of GetWindowsDirectory and "\SysWow64" should be sufficient. I'd much rather have a function that returns the path though.

    It's been a long time since I've been to the forums. Hope everyone is well.

    Regards,
    Scott
    Scott Wolfington
    [url="http://www.boogietools.com"]http://www.boogietools.com[/url]

    #2
    Code:
    DECLARE FUNCTION GetSystemWow64Directory LIB "KERNEL32.DLL" ALIAS "GetSystemWow64DirectoryA" ( _
       BYREF ASCIIZ _                      ' __out LPSTR lpBuffer
     , BYVAL DWORD _                       ' __in  UINT  uSize
     ) AS DWORD                            ' UINT
    See: http://msdn.microsoft.com/en-us/libr...05(VS.85).aspx
    Forum: http://www.jose.it-berater.org/smfforum/index.php

    Comment


      #3
      Thanks José. Much appreciated.
      Scott Wolfington
      [url="http://www.boogietools.com"]http://www.boogietools.com[/url]

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎