Watch, Follow, &
Connect with Us

Welcome, Guest
Guest Settings
Help

Thread: TOSVersion


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Mar 2, 2017 9:08 AM Last Post By: Remy Lebeau (Te... Threads: [ Previous | Next ]
bernard roussely

Posts: 92
Registered: 2/8/05
TOSVersion  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 1, 2017 9:04 AM
Hi,

Using TOSVersion and getting this:

Windows 10 (Version 10.0, Build 0, 64 bit Edition)
Windows 10
Build: 0
Major: 10
Minor: 0
Service Pack - Major: 0
Service Pack - Minor: 0

Using Windows->Parameters, I am getting that:

Version: 1607
OS Version: 14393.693

Is there a C++ Builder function / variable to obtain those same parameters?

Thanks,
bernard
Remy Lebeau (Te...


Posts: 8,201
Registered: 12/23/01
Re: TOSVersion  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 1, 2017 9:30 AM   in response to: bernard roussely in response to: bernard roussely
bernard wrote:

Using TOSVersion and getting this:

Windows 10 (Version 10.0, Build 0, 64 bit Edition)
Windows 10
Build: 0
Major: 10
Minor: 0
Service Pack - Major: 0
Service Pack - Minor: 0

Using Windows->Parameters, I am getting that:

Version: 1607
OS Version: 14393.693

Is there a C++ Builder function / variable to obtain those same
parameters?

TOSVersion is simply a wrapper for the following Win32 API functions:

- GetVersionEx()

- VerifyVersionInfo()

- Get(Native)SystemInfo()

- GetSystemMetrics(SM_SERVERR2)

- (Win 8.1 and later only) NetWkstaGetInfo() and GetFileVersionInfo('kernel32.dll')
to get the true OS version.

--
Remy Lebeau (TeamB)
bernard roussely

Posts: 92
Registered: 2/8/05
Re: TOSVersion  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 2, 2017 3:39 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Is there a C++ Builder function / variable to obtain those same parameters?

TOSVersion is simply a wrapper for the following Win32 API functions:

- GetVersionEx()

- VerifyVersionInfo()

- Get(Native)SystemInfo()

- GetSystemMetrics(SM_SERVERR2)

- (Win 8.1 and later only) NetWkstaGetInfo() and GetFileVersionInfo('kernel32.dll')
to get the true OS version.

Hi Remy,
Thanks.
Just Wonder why EMB doesn't update TOSVersion or doesn't provide a TOSVersionW8+ function.
bernard
Remy Lebeau (Te...


Posts: 8,201
Registered: 12/23/01
Re: TOSVersion  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 2, 2017 9:08 AM   in response to: bernard roussely in response to: bernard roussely
bernard wrote:

Just Wonder why EMB doesn't update TOSVersion

Update for what purpose?

or doesn't provide a TOSVersionW8+ function.

Again, for what purpose? For instance, TOSVersion has already been updated
to report the proper OS version numbers in Windows 8.1 and later.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02