getSystemInfo
Posted: Mon Jul 28, 2003 7:14 pm
In the WinAPI, getSystemInfo is a subroutine rather than a function, how can i retireve say the CPU speed with the getSystemInfo?
Thanks
Cecil
Thanks
Cecil
Code: Select all
Structure SysInfo
dwOemId.w
wProcessorArchitecture.w
wReserved.w
dwPageSize.w
lpMinimumApplicationAddress.l
lpMaximumApplicationAddress.l
dwActiveProcessorMask.w
dwNumberOfProcessors.w
dwProcessorType.w
dwAllocationGranularity.w
wProcessorLevel.w
wProcessorRevision.w
EndStructure
GetSystemInfo_(@wProcessorArchitecture.SysInfo)
Debug PeekS(@wProcessorArchitecture)Code: Select all
*Result = GetSystemInfo_(@wProcessorArchitecture.SysInfo)
Debug PeekS(*Result)Code: Select all
Structure SysInfo
StructureUnion
dwOemId.l
wProcessorArchitecture.w
wReserved.w
EndStructureUnion
dwPageSize.l
lpMinimumApplicationAddress.l
lpMaximumApplicationAddress.l
dwActiveProcessorMask.l
dwNumberOfProcessors.l
dwProcessorType.l
dwAllocationGranularity.l
wProcessorLevel.w
wProcessorRevision.w
EndStructure
GetSystemInfo_(@si.SysInfo)
Debug si\wProcessorArchitecture
Debug "---"
Debug si\dwPageSize
Debug si\dwActiveProcessorMask
Debug si\dwNumberOfProcessors
Debug si\dwProcessorType
Debug si\wProcessorLevel