Version Detection ?

All development related issues welcome

Moderator: Moderator Team

Post Reply
A-v-S
Posts: 91
Joined: Mon Dec 06, 2004 8:37 pm
Location: BAEK CITY (Beek, Limburg, The Netherlands, Europe, Earth)
Contact:

Version Detection ?

Post by A-v-S »

I programmed a windows version detetion program in delphi ...
it now detect ROS ... but is there a way yo detect what version of ROS is running ?

my program & source code :
http://home.hetnet.nl/~andre_van_schoub ... tect21.rar
"you laugh at me because I'm different, I laugh at you because you're all the same"

http://www.il.fontys.nl/~andre

GvG
Posts: 499
Joined: Mon Nov 22, 2004 10:50 pm
Location: The Netherlands

Post by GvG »

I'm no Delphi programmer, but looking at your source I can recognize some stuff.
Before calling GetVersionEx, you should set the Version variable to all nulls, then set Version.dwVersionInfoSize to SizeOf(Version) like you do now. Call GetVersionEx. On return, if you're running on ReactOS, Version.szCSDVersion will contain two strings. The first string is the Windows compatible service pack number, "Service Pack 6". At the end of that string is a null byte. Following that null byte is the ReactOS version string (something like "ReactOS 0.2.5-RC1 (Build 20041227)".
When running on Windows, there will be only one string in Version.szCSDVersion.

A-v-S
Posts: 91
Joined: Mon Dec 06, 2004 8:37 pm
Location: BAEK CITY (Beek, Limburg, The Netherlands, Europe, Earth)
Contact:

Post by A-v-S »

thanks ... ;)

i redesigned the interface...
and when ROS is detected the window size is changed,
because it is too small on ROS.
Different font and size on ROS.
(ROS : Bitstream Vera Sans,8 Windows : Tahoma,10)
Changed shape to panel because
only one shape is displayed on ROS

edit : new version uploaded :
http://home.hetnet.nl/~andre_van_schoub ... tect22.rar
"you laugh at me because I'm different, I laugh at you because you're all the same"

http://www.il.fontys.nl/~andre

uniQ
Posts: 246
Joined: Sat Dec 04, 2004 8:58 am

Post by uniQ »

Is that supposed to be in Eng or Nthl?

-uniQ
Coming on, coming up, let me help ROS and I'll be able to look @ a life well used.

A-v-S
Posts: 91
Joined: Mon Dec 06, 2004 8:37 pm
Location: BAEK CITY (Beek, Limburg, The Netherlands, Europe, Earth)
Contact:

Post by A-v-S »

I started it in dutch ... but i am going to translate is and change the design again ...


edit :
new version uploaded... complete new program... but without windows build analys (detection of beta windows)
http://home.hetnet.nl/~andre_van_schoub ... detnew.rar
"you laugh at me because I'm different, I laugh at you because you're all the same"

http://www.il.fontys.nl/~andre

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests