DwDeviceIDStructSize
(1)
XP
(1)
Bruce.Eitman
(1)
DwCorrectOutSize
(1)
KernelIoControl
(1)
PCorrectOutBuf
(1)
PszDeviceID
(1)
EMVP
(1)

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

Asked By Don
20-Nov-09 02:25 PM
Hi

Is there a way to read the cpi id?


--
Don

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

Don replied to Don
23-Nov-09 09:10 AM
I know in xp there is the WMI with the managment class.   Is there anything
similar in CE?
--
Don

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

Bruce Eitman [eMVP] replied to Don
23-Nov-09 09: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

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

Alex Feinman replied to Bruce Eitman [eMVP]
23-Nov-09 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
wrote:Itnondor-----------------------------------------------------------Hi:You
mike replied to Alex Feinman
06-Dec-09 03: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
Post Question To EggHeadCafe