Author Topic: [SOLVED] GetVersionEx  (Read 2678 times)

Michael Collier

  • Full Member
  • ***
  • Posts: 249
[SOLVED] GetVersionEx
« on: December 28, 2011, 10:00:27 pm »

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
« Last Edit: December 28, 2011, 10:43:05 pm by Michael Collier »