Lionheart008
30-07-2009, 20:01
hi all,
what possibilities I have with thinbasic to get system infos ? e.g. about CPU frequency, detection or hardware infos ? do any example for this cases already exist ?
my idea:
uses "liongfx", "console"
dim tb_CpuDetect as long
liongfx_screen 16,32
Function cpu_type() As Integer '4 = 486er, 5 = 586er 6 = 686er etcpp.
Function = tb_CpuDetect liongfx_Shr, 28,0
End Function
liongfx_Print "your CPU-Typ = " & cpu_type() & " 86 "
liongfx_Print
liongfx_Sleep 1500
what library I can use ? somebody can help with a link or infos ? would be very nice...
something like this one:
LIB "KERNEL32.DLL"
good evening, lionheart
what possibilities I have with thinbasic to get system infos ? e.g. about CPU frequency, detection or hardware infos ? do any example for this cases already exist ?
my idea:
uses "liongfx", "console"
dim tb_CpuDetect as long
liongfx_screen 16,32
Function cpu_type() As Integer '4 = 486er, 5 = 586er 6 = 686er etcpp.
Function = tb_CpuDetect liongfx_Shr, 28,0
End Function
liongfx_Print "your CPU-Typ = " & cpu_type() & " 86 "
liongfx_Print
liongfx_Sleep 1500
what library I can use ? somebody can help with a link or infos ? would be very nice...
something like this one:
LIB "KERNEL32.DLL"
good evening, lionheart