473,320 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

with out using system.management

Hi

to get the cpu id i'm using the system.management class.
is it possible to get the cpuid with out using system.management ? if
poosible can anybody tell me how to get.

thanx in advance
Yoshitha
Nov 19 '05 #1
3 1255
You'd have to PInvoke unmanaged code that calls the CPUID instruction.

You might also find some info with the registry API underneath:
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\Cen tralProcessor

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 8 Jul 2005 11:08:09 +0530, "Yoshitha"
<gu**********@rediffmail.com> wrote:
Hi

to get the cpu id i'm using the system.management class.
is it possible to get the cpuid with out using system.management ? if
poosible can anybody tell me how to get.

thanx in advance
Yoshitha


Nov 19 '05 #2
could sombody please maybe supply an example of this?

probably an api declaration and an example of its usage....

thanks
Zacho

"Scott Allen" wrote:
You'd have to PInvoke unmanaged code that calls the CPUID instruction.

You might also find some info with the registry API underneath:
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\Cen tralProcessor

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 8 Jul 2005 11:08:09 +0530, "Yoshitha"
<gu**********@rediffmail.com> wrote:
Hi

to get the cpu id i'm using the system.management class.
is it possible to get the cpuid with out using system.management ? if
poosible can anybody tell me how to get.

thanx in advance
Yoshitha


Nov 19 '05 #3
I don't have a very deep unerstanding on how to use the system.management
namespace. I tried doing what you did albeit without success.

could you supply an example code snippet?

thanks very much!
Zacho

"Yoshitha" wrote:
Hi

to get the cpu id i'm using the system.management class.
is it possible to get the cpuid with out using system.management ? if
poosible can anybody tell me how to get.

thanx in advance
Yoshitha

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: scsharma | last post by:
hi, I am trying following code. string fileObject = @"C:\Documents and Settings\myfolder\Temp.txt"; ManagementBaseObject ret = null; ManagementPath path = new ManagementPath( ); path.Server =...
0
by: Ewart MacLucas | last post by:
generated some WMI managed classes using the downloadable extensions for vs2003 from mircrosoft downloads; wrote some test code to enumerate the physicall processors and it works a treat, but a...
5
by: Won | last post by:
I want to know how to shut down computer using VB .NET. Thank you
1
by: R Hedges | last post by:
Hi there-I'm an AMATEUR VB.NET programmer, who has hacked together a small VB.NET application that can get information from remote machines using the System.Management namespace. MY APPLICATION...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: mandarkraftware | last post by:
Hi All, Let me present you with list of consultants currently available. Name / Job Title Summary Ramchandran/Java · 7+ years experience in the field of Software Development. · Expertise...
1
by: remya1000 | last post by:
from my system i need to open a calculator in remote machine. and i'm using Vb.net and WMI. i need to pop up the calculator in remote machine, while i run one program in my system. while running in...
2
by: Vadim Malishev | last post by:
Hello, Can anybody help to solve the following problem? My Windows Service trying to access remote machine to get WindowsDirectory Property over Win32_OperatingSystem WMI class. Both servers...
1
by: andygunther | last post by:
I have the following code that I am trying to use to join a computer to a domain in a C# wizard application I am writing. I get an unhandled exception from System.Management.dll as soon as I...
0
by: garks | last post by:
I am using Exchange 2003(Exchange Hosting), C#. I am trying to get Mailbox usage using WMI But I follows the coding below, still cannot get the Mailbox usage. Even though, I predefined the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.