type of CPU

Hi ALL,

Does anyone know how can I recognize type of CPU using on the PC.
I need know the processor Pentium IV or not.
Thanks for any help.
Mark

Mark Shnaider wrote:

Hi ALL,

Does anyone know how can I recognize type of CPU using on the PC.
I need know the processor Pentium IV or not.

The CPUID instruction can tell you that. However, I suspect you don’t
really want to know whether you have a Pentium IV. You probably want to
know whether it supports XMM, or SSE2, or some other specific processor
capability. That’s ALSO available in CPUID, but if you check for the
specific capability, then it will work when the Pentium V comes out,
whereas checking for a specific processor will break.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

“Tim Roberts” wrote in message news:xxxxx@ntdev…
> The CPUID instruction can tell you that. However, I suspect you don’t
> really want to know whether you have a Pentium IV. You probably want to
> know whether it supports XMM, or SSE2, or some other specific processor
> capability. That’s ALSO available in CPUID, but if you check for the
> specific capability, then it will work when the Pentium V comes out,
> whereas checking for a specific processor will break.
>

If so, IsProcessorFeaturePresent API is what the OP needs.
An article on this API with sample code is on Sysinternals site
http://www.sysinternals.com/Utilities/Procfeatures.html

Regards,
–PA

Pavel A. wrote:

“Tim Roberts” wrote in message news:xxxxx@ntdev…
>
>>The CPUID instruction can tell you that. However, I suspect you don’t
>>really want to know whether you have a Pentium IV. You probably want to
>>know whether it supports XMM, or SSE2, or some other specific processor
>>capability. That’s ALSO available in CPUID, but if you check for the
>>specific capability, then it will work when the Pentium V comes out,
>>whereas checking for a specific processor will break.
>>
>
>
> If so, IsProcessorFeaturePresent API is what the OP needs.
> An article on this API with sample code is on Sysinternals site
> http://www.sysinternals.com/Utilities/Procfeatures.html
>
>
>
> Regards,
> --PA
>
>
>
Another way is to read the processor features array from
KUSER_SHARED_DATA. Works both in user-mode and kernel-mode, and it’s
documented in the DDK along with the flags for the common features you’d
want to check for.

Best regards,
Alex Ionescu

Thanks to ALL for clear answers.
Best regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Alex Ionescu [397670]
Sent: Tuesday, February 28, 2006 3:30 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] type of CPU

Pavel A. wrote:

“Tim Roberts” wrote in message news:xxxxx@ntdev…
>
>>The CPUID instruction can tell you that. However, I suspect you don’t
>>really want to know whether you have a Pentium IV. You probably want to
>>know whether it supports XMM, or SSE2, or some other specific processor
>>capability. That’s ALSO available in CPUID, but if you check for the
>>specific capability, then it will work when the Pentium V comes out,
>>whereas checking for a specific processor will break.
>>
>
>
> If so, IsProcessorFeaturePresent API is what the OP needs.
> An article on this API with sample code is on Sysinternals site
> http://www.sysinternals.com/Utilities/Procfeatures.html
>
>
>
> Regards,
> --PA
>
>
>
Another way is to read the processor features array from
KUSER_SHARED_DATA. Works both in user-mode and kernel-mode, and it’s
documented in the DDK along with the flags for the common features you’d
want to check for.

Best regards,
Alex Ionescu


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer