yalishandar / tasklist-rs

Get the process name or process id on windows
19 stars 3 forks source link

How to determine if a process is in arm64 or x64 #2

Open xgdgsc opened 11 months ago

xgdgsc commented 11 months ago

IsWow64Process can be used to check for x86 on arm64 windows devices. While something like https://github.com/msys2/MINGW-packages/discussions/8991 might be needed for detecting arm64 / x64 processes.

yalishandar commented 11 months ago

This is indeed a problem,it can be solved by using the IsWow64Process2 API.In the current version is using IsWow64Process API. I will solve this problem in the next version.