Kernel32GetSystemWow64Directory Method

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

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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
)

Parameters

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.

Return Value

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.

Remarks

See Also