Kernel32GetSystemWow64Directory Method
Retrieves the path of the system directory used by WOW64. This directory is not present on 32-bit Windows.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static uint GetSystemWow64Directory(
StringBuilder buffer,
uint size
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function GetSystemWow64Directory (
buffer As StringBuilder,
size As UInteger
) As UInteger
Dim buffer As StringBuilder
Dim size As UInteger
Dim returnValue As UInteger
returnValue = Kernel32.GetSystemWow64Directory(buffer,
size)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static unsigned int GetSystemWow64Directory(
StringBuilder^ buffer,
unsigned int size
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member GetSystemWow64Directory :
buffer : StringBuilder *
size : uint32 -> uint32
No code example is currently available or this language may not be supported.
- buffer StringBuilder
-
A pointer to the buffer to receive the path. This path does not end with a backslash.
- size UInt32
-
The maximum size of the buffer, in characers.
UInt32
If the function succeeds, the return value is the length, in characers,
of the string copied to the buffer, not including the terminating null character.
If the length is greater than the size of the buffer,
the return value is the size of the buffer required to hold the path.
If the function fails, the return value is zero.
On 32-bit Windows, the function always fails,
and the extended error is set to
ERROR_CALL_NOT_IMPLEMENTED.