Detect Windows Version

 
Does any one now a easy way to find out what version of windows MT4 is running using just a windows API call.
Can any one tell me how to make this work:

#import "kernel32.dll"
int GWINAPI GetVersionEA(_inout LPOSVERSIONINFO lpVersionInfo);
#import

http://msdn.microsoft.com/en-us/library/ms724451(v=VS.85).aspx

Thank You