Help - Search - Members - Calendar
Full Version: .NET Process - 32 or 64 bit?
AC Tools Everything Macro > General Discussion > C++/Delphi/VB Development
drewlt
yeah, yeah, yeah, .net sucks - get over it smile.gif If you can get the info i want in another language, i'll be just as happy. smile.gif

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 process on a 64 bit machine and it tries to read Process p.MainModule.ModuleName 64 can read everything, but 32 can only get the ModuleName from 32 bit processes.

As usual, any other thoughs are welcome.

Thanks!
smile.gif -DT
drewlt
Solved -
Used my.computer.info to get OS version
Used IsWOW64 API call to determine if is a 32 bit running on a 64 bit machine..

smile.gif -DT
Ahk
It almost sounded like you could code based on the error, but that's considered to be bad programming practices smile.gif.

Your pic is cool, it's like the only animated one around here hehe.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.