Get Device Hardware infos

J

James Hetfield

Hello

I am trying to get several Device Hardware Infos in .NET CF 1.
=> Is there any possibility to get the CPU Name and Speed?

=> I can also read all the Storage Informations, but what would be
interesting is to know how big the ROM and RAM is. E.g: I know that I have
totally 187MB Device Storage, but how can I know that it is a 256MB
RAM-Memory in the device?

Thanks a lot

James
 
P

Paul G. Tobey [eMVP]

You can do a KernelIoControl( IOCTL_PROCESSOR_INFO, ... ). *If* the device
OEM answers that request with the information you want, then you can get it.
If the device OEM does not respond to the request, you're out of luck. It's
not required that it be supported. Of course, you have to P/Invoke
KernelIoControl() and define managed versions of the structures passed to
it.

"Device Storage" doesn't mean anything to me. That might be a flash
filesystem running on built-in flash, I guess. Whether you can find the
properties of that or not depends on how the OEM implemented it. You can
try GetDiskFreeSpaceEx(), again, P/Invoke (although there might be a version
of this in the File class).

RAM memory can be identified with GlobalMemoryStatus(), again, P/Invoke. It
sounds, though, like you're just sort of curious about getting this
information; it wouldn't be worth it to me to do this P/Invoke work just for
curiousity sake. If you need something in order to make your program do its
job, tell us what you need to do and you might get a more on-point answer.

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top