OS ID

BlitzPlus Forums/BlitzPlus Programming/OS ID

Adam Novagen(Posted 2006) [#1]
Hey Blitzers,
I've been wondering: using the 2D command set in Blitz 3D, does anyone know a way to identify the user's Windows version? Also, I've been wondering if there's a way for Blitz to identify the CPU type, gfx card, desktop resolution (outside the program,) etc.


Alaric(Posted 2006) [#2]
Here Is all that I've found out about os and hardware detection.

http://www.blitzbasic.com/Community/posts.php?topic=58316

However, I did come up with these bits of code for finding resolution and gfx drivers (the closest thing I've found).



Also, for the OS detection you may want to consider "Getenv("OS")", however I have found it to be unreliable in its definitions of Windows OS's (like the environment variable not even existing on 98's). Everything else you want will probably require API's and userlibs (see the link above). That's about all I've got.


Adam Novagen(Posted 2006) [#3]
Thanks Alaric, but unfortunately that doesn't help me; the Blitz 3D 2D commands don't include GetEnv(), ClientWidth(), ClientHeight(), or Desktop(). Thanks again anyway.


skidracer(Posted 2006) [#4]
ADAM, any chance of shortening your nic? It's making the main forum pages on my browser look pretty ugly.


Adam Novagen(Posted 2006) [#5]
Well, ADAM was already taken... How's this?