getsystemwow64directory (kernel32)
Last changed: -198.153.231.184

.
Summary
Retrieves the path of the system directory used by WOW64. This directory is not present on 32-bit Windows.

C# Signature:

[DllImport("kernel32.dll", SetLastError=true)]
public static extern int GetSystemWow64Directory([In, Out] char[] lpBuffer, [MarshalAs(UnmanagedType.U4)] uint size);

VB Signature:

Declare Function GetSystemWow64Directory Lib "kernel32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

    [DllImport("Kernel32.dll")]
    public static extern int GetSystemWow64Directory([In, Out] char[] lpBuffer, [MarshalAs(UnmanagedType.U4)] uint size);

    char[] path = new char[256];

    int result = GetSystemWow64Directory(path, (uint)path.Length);
    if (result != 0)
        MessageBox.Show(new String(path, 0, result));

Documentation