Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Getting Processor Type/Features in Win32 (was: Re: [mythtv-commits] Ticket #4497: Win32 builds broken after r15435)

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


david at thegeorges

Jan 22, 2008, 8:07 AM

Post #1 of 3 (529 views)
Permalink
Getting Processor Type/Features in Win32 (was: Re: [mythtv-commits] Ticket #4497: Win32 builds broken after r15435)

On 01/22/2008 10:06 AM, Daniel Kristjansson wrote:
>
> How about fixing the CPU detection on MS Windows? The current
> ./configure script can detect the CPU using /proc on Linux and
> an equivalent kernel file system on OSX. There must be some way
> to ask MS Windows for the CPU in use, or at least some program
> we can compile and run to detect the CPU..
>

Here is a link to example source for getting system info from Windows:
http://msdn2.microsoft.com/en-us/library/ms724423(VS.85).aspx

Here is a description of the GetSystemInfo function:
http://msdn2.microsoft.com/en-us/library/ms724381(VS.85).aspx

Here is a link to information on the SYSTEM_INFO structure:
http://msdn2.microsoft.com/en-us/library/ms724958(VS.85).aspx

If you need to find out if the processor has specific features like
3Dnow or MMX use IsProcessorFeaturePresent:
http://msdn2.microsoft.com/en-us/library/ms724482(VS.85).aspx

If I get some time I could probably right a little C program that would
get the type, model and stepping. But I'm pretty swamped right now, so
it would probably happen quicker if someone else did it.

--
David

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


andrei at tanas

Jan 22, 2008, 8:24 AM

Post #2 of 3 (471 views)
Permalink
Re: Getting Processor Type/Features in Win32 (was: Re: [mythtv-commits] Ticket #4497: Win32 builds broken after r15435) [In reply to]

> If I get some time I could probably right a little C program that would
> get the type, model and stepping. But I'm pretty swamped right now, so
> it would probably happen quicker if someone else did it.

The environment variable %PROCESSOR_IDENTIFIER% provides all that. I just
wanted to make sure it's consistent across different CPUs.
Thanks.

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


david at thegeorges

Jan 22, 2008, 10:08 AM

Post #3 of 3 (469 views)
Permalink
Re: Getting Processor Type/Features in Win32 [In reply to]

On 01/22/2008 11:24 AM, Andrei Tanas wrote:
>> If I get some time I could probably right a little C program that would
>> get the type, model and stepping. But I'm pretty swamped right now, so
>> it would probably happen quicker if someone else did it.
>>
>
> The environment variable %PROCESSOR_IDENTIFIER% provides all that. I just
> wanted to make sure it's consistent across different CPUs.
> Thanks.
>

Ok, I wasn't sure if you needed the more detailed info that
IsProcessorFeaturePresent provides. Like if the processor supported
MMX, SSE, etc. Guess you can infer that from the processor family and
model.

--
David

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.