|
|
You probably know the API "GetVersionEx" or the SysUtils variables "Win32Platform" etc. Unfortunately all the infos you're getting there are quite abstract. You have to translate them to get "real" infos about the operating system.
To make your (and my own) life a bit easier, I've written a little function, which collects all important infos and translates them into a practicable format. The function is named "OS" and returns the structure "TOS", which contains all the infos. Here are the definitions:
|
Now if you want to ask whether you're running on a win9x based system or whether the current system is either winME or win2k - such kind of checks are really easy now. Let us see some examples:
|