Article Preview
Buy Now
COLUMN
Windows version
Asking for the correct Windows version from REALbasic Code using Declares.
Issue: 5.6 (September/October 2007)
Author: Christian Schmitz
Article Description: No description available.
Article Length (in bytes): 7,916
Starting Page Number: 44
Article Number: 5617
Resource File(s):
5617.zip Updated: 2013-03-11 19:08:00
Related Web Link(s):
http://msdn2.microsoft.com/en-us/library/ms724451.aspx
http://msdn2.microsoft.com/en-us/library/ms724429.aspx
Excerpt of article text...
All Windows versions should be equal to you as the programmer, but some are different so if a customer has a problem you might ask him what Operation System he is using. For Mac OS see the listing for a nice version function in Listing #1.
Collection version data for Windows
For Windows it's a little bit more complicated. First we will make a declare statement to the function GetVersionEx which returns the version information record. Than we have to interpret it, but let's start with the declare. The C code looks like that:
BOOL GetVersionExA(LPOSVERSIONINFO lpVersionInfo);
As you can see it's just a boolean function with a pointer (lp is short for a long pointer) pointing to a memoryblock. So we get this declare:
...End of Excerpt. Please purchase the magazine to read the full article.