AnonGod
IS-IT--Management
- Jun 5, 2000
- 223
Using Process.getProcesses() i'm pulling in all running processes on a machine. I need a way to determine if each Process is 32 or 64 bit.
Problem is when I'm running a 32 bit host application on a 64 bit machine. When it tries to read Process p.MainModule.ModuleName (or any module access) it only get the ModuleName from 32 bit processes. The 64 bit process errors out.
Now I could wrap a try/catch around it, but it makes sense to me to have a way of telling before hand. I've looked through the Process members, but nothing seems to be telling.
All help is appreciated. Thanks!
-Andrew
[Signature modified by admin request]
-TAG
[Contact information removed by another admin request]
Problem is when I'm running a 32 bit host application on a 64 bit machine. When it tries to read Process p.MainModule.ModuleName (or any module access) it only get the ModuleName from 32 bit processes. The 64 bit process errors out.
Now I could wrap a try/catch around it, but it makes sense to me to have a way of telling before hand. I've looked through the Process members, but nothing seems to be telling.
All help is appreciated. Thanks!
-Andrew
[Signature modified by admin request]
-TAG
[Contact information removed by another admin request]