Hi,
Is GetVersionEx the correct function call to extract windows major and minor numbers at runtime?
When I try if GetVersionEx(myVersion) it always returns false and the version parameter remains unchanged.
I have included the Windows unit and declared myVersion variable as TOSVERSIONINFO , I'm testing on XP at the moment.
EDIT: Sorry my fault - should have used SizeOf(TOSVersionInfo) first