logo

How do I read the cpu id in C# Windows CE 6.0

Don posted on Friday, November 20, 2009 2:25 PM

Hi

Is there a way to read the cpi id?


--
Don
reply


I know in xp there is the WMI with the managment class.

Don replied to Don on Monday, November 23, 2009 9:10 AM

I know in xp there is the WMI with the managment class.   Is there anything
similar in CE?
--
Don
reply

I do not know of any APIs to read the CPU ID.

Bruce Eitman [eMVP] replied to Don on Monday, November 23, 2009 9:49 AM

I do not know of any APIs to read the CPU ID.  If needed, the board vendor
could add that.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com
reply

In fact the reason XP can do it is that Intel CPU have CPUID instruction.

Alex Feinman replied to Bruce Eitman [eMVP] on Monday, November 23, 2009 11:07 AM

In fact the reason XP can do it is that Intel CPU have CPUID instruction. It
is by no means mandatory. Quite a few CPUs do not have it. Hence there is no
standardized way for retrieving CPU ID. Like Bruce says - it is
vendor-specific if exists
reply

wrote:Itnondor-----------------------------------------------------------Hi:You

mike replied to Alex Feinman on Sunday, December 06, 2009 3:28 PM

It
no
ndor
-----------------------------------------------------------

Hi:

You need to call KernelIoControl (IOCTL_HAL_GET_DEVICEID, NULL, 0,
pszDeviceID,
dwDeviceIDStructSize,
&dwBytesRet)
to get device information.

KernelIoControl(IOCTL_HAL_GET_DEVICE_INFO, (VOID*)&dwSpi, sizeof
(dwSpi),
pCorrectOutBuf, dwCorrectOutSize,
NULL))

Try this so, could get CPU ID and Platform information.

Mike
http://www.itxembedded.com
reply

 

Didn't Find The Answer You Were Looking For?

View WindowsCE Embedded Posts   Ask A New Question

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Create Account & Ask Question In Live Forum

Previous WindowsCE Embedded conversation.

PocketPC    PocketPC Active Sync    PocketPC Developer    PocketPC Phone Edition    WindowsCE App Development    WindowsCE Embedded    WindowsCE Platform Builder   




  $1000    Adam Houldsworth - $187  |  Jonathan VH - $139  |  Kirtan Patel - $117  |  F Cali - $116  |  Huggy Bear - $88  |  more Neado  |  Free Icons  |  Privacy  |   (c) 2010