SO3Engine
include
SCOLBasic
Cpuid.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of OpenSpace3D
4
For the latest info, see http://www.openspace3d.com
5
6
Copyright (c) 2012 I-maginer
7
8
This program is free software; you can redistribute it and/or modify it under
9
the terms of the GNU Lesser General Public License as published by the Free Software
10
Foundation; either version 2 of the License, or (at your option) any later
11
version.
12
13
This program is distributed in the hope that it will be useful, but WITHOUT
14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17
You should have received a copy of the GNU Lesser General Public License along with
18
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20
http://www.gnu.org/copyleft/lesser.txt
21
22
-----------------------------------------------------------------------------
23
*/
24
31
#ifndef CPUID_H
32
#define CPUID_H
33
34
#include "
SO3Platform.h
"
35
36
typedef
struct
_CPUINFOS
{
37
char
*
pszVendorId
;
38
char
*
pszCpuName
;
39
unsigned
char
CountOfLogicalProcessors
;
40
unsigned
char
FamilyCode
;
41
unsigned
char
ModelNumber
;
42
unsigned
char
SteppingID
;
43
}
CPUINFOS
, *
PCPUINFOS
;
44
45
int
__stdcall
CpuInfo
(
PCPUINFOS
pcpuinf);
46
47
#endif
CpuInfo
int __stdcall CpuInfo(PCPUINFOS pcpuinf)
PCPUINFOS
struct _CPUINFOS * PCPUINFOS
CPUINFOS
struct _CPUINFOS CPUINFOS
SO3Platform.h
platform & compilator detection scripts.
_CPUINFOS
Definition
Cpuid.h:36
_CPUINFOS::pszVendorId
char * pszVendorId
Definition
Cpuid.h:37
_CPUINFOS::FamilyCode
unsigned char FamilyCode
Definition
Cpuid.h:40
_CPUINFOS::ModelNumber
unsigned char ModelNumber
Definition
Cpuid.h:41
_CPUINFOS::CountOfLogicalProcessors
unsigned char CountOfLogicalProcessors
Definition
Cpuid.h:39
_CPUINFOS::SteppingID
unsigned char SteppingID
Definition
Cpuid.h:42
_CPUINFOS::pszCpuName
char * pszCpuName
Definition
Cpuid.h:38
Generated by
1.9.8