Show / Hide Table of Contents

Method process.is32Bit(+ 1 overload)


Overload

Returns true if the process is 32-bit, false if 64-bit. Also returns false if failed. Supports lastError.

public static bool is32Bit(int processId)
Parameters
processId  (int)
Returns
bool

Remarks

note

If you know it is current process, instead use osVersion functions or IntPtr.Size==4. This function is much slower.

See Also

System.Runtime.InteropServices.RuntimeInformation

Overload(top)

Returns true if the process is 32-bit, false if 64-bit. Also returns false if failed. Supports lastError.

public static bool is32Bit(nint processHandle)
Parameters
processHandle  (nint)
Returns
bool