By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,369 Members | 1,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,369 IT Pros & Developers. It's quick & easy.

Find CPU family

P: n/a
Is there a way I can find what CPU my application is running on?
I am trying to find if the CPU is a 64bit or 32bit.
Is there an API exposed in the framework?
Any help will be helpful.

thank you,
source
Mar 16 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hello source,

See there http://www.pcreview.co.uk/forums/thread-531685.php

Where are you going to use it?

s> Is there a way I can find what CPU my application is running on?
s> I am trying to find if the CPU is a 64bit or 32bit.
s> Is there an API exposed in the framework?
s> Any help will be helpful.
s> thank you,
s> source
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 16 '06 #2

P: n/a
I have a piece of code which I only want to execute if it's a 64bit proc.

thank you

"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:9c**************************@msnews.microsoft .com...
Hello source,

See there http://www.pcreview.co.uk/forums/thread-531685.php

Where are you going to use it?

s> Is there a way I can find what CPU my application is running on?
s> I am trying to find if the CPU is a 64bit or 32bit.
s> Is there an API exposed in the framework?
s> Any help will be helpful.
s> thank you,
s> source
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche

Mar 16 '06 #3

P: n/a
Now I am trying to script using winmanagment object model and I wanted to
find out that how do I make a script return a value
or if not then can it raise and error
so that

System.Diagnostics.Process.Exitcode can be anything other than 0
So if the DiagProcess returns a non zero value I will be able to make a
decision
Any pointers will help.

source
"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:9c**************************@msnews.microsoft .com...
Hello source,

See there http://www.pcreview.co.uk/forums/thread-531685.php

Where are you going to use it?

s> Is there a way I can find what CPU my application is running on?
s> I am trying to find if the CPU is a 64bit or 32bit.
s> Is there an API exposed in the framework?
s> Any help will be helpful.
s> thank you,
s> source
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche

Mar 16 '06 #4

P: n/a
"source" <so***********@hotmail.com> wrote:
Is there a way I can find what CPU my application is running on?
I am trying to find if the CPU is a 64bit or 32bit.
Is there an API exposed in the framework?
Any help will be helpful.


Mentalis has this all done:
http://www.mentalis.org/soft/class.qpx?id=13

--
Chris Mullins
Mar 16 '06 #5

P: n/a
It's generally better if you ask this question once and post it to multiple
groups at the same time rather than post the same question repeatedly in
different groups.
--
Phil Wilson
[Microsoft MVP-Windows Installer]

"source" <so***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Is there a way I can find what CPU my application is running on?
I am trying to find if the CPU is a 64bit or 32bit.
Is there an API exposed in the framework?
Any help will be helpful.

thank you,
source

Mar 17 '06 #6

P: n/a
Hello source,

You need understand that if you are working on 64bit CPU and windows in 32bit
that you can't detect 64bit CPU with WMI,
coz it's platform specific. You can type wmic.exe then type "cpu" in console
window to test it
s> Now I am trying to script using winmanagment object model and I
s> wanted to
s> find out that how do I make a script return a value
s> or if not then can it raise and error
s> so that
s> System.Diagnostics.Process.Exitcode can be anything other than 0
s> So if the DiagProcess returns a non zero value I will be able to make
s> a
s> decision
s> Any pointers will help.
s> source
s>
s> "Michael Nemtsev" <ne*****@msn.com> wrote in message
s> news:9c**************************@msnews.microsoft .com...
s>
Hello source,

See there http://www.pcreview.co.uk/forums/thread-531685.php

Where are you going to use it?

s> Is there a way I can find what CPU my application is running on?
s> I am trying to find if the CPU is a 64bit or 32bit.
s> Is there an API exposed in the framework?
s> Any help will be helpful.
s> thank you,
s> source
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 17 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.