Recent

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

Michael Collier

  • Sr. Member
  • ****
  • Posts: 301
[SOLVED] GetVersionEx
« on: December 28, 2011, 10:00:27 pm »
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
« Last Edit: December 28, 2011, 10:43:05 pm by Michael Collier »

 

TinyPortal © 2005-2018