I'm tracking the operating system used by my app. According to http://fox.wikis.com/wc.dll?Wiki~VFPFunctionOS~Wiki, it looks like you can't tell between Windows 8 and Windows 10.
Ideas??? tia! --Mike
I don't have Windows 10 but try this ... http://www.news2news.com/vfp/?example=22&function=29
Be good to know if that works OK on 10 also - don't see why it shouldn't.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com Sent: Wednesday, 24 May 2017 8:16 AM To: profoxtech@leafe.com Subject: How to tell between Win8 and Win10 using Fox commands?
I'm tracking the operating system used by my app. According to http://fox.wikis.com/wc.dll?Wiki~VFPFunctionOS~Wiki, it looks like you can't tell between Windows 8 and Windows 10.
Ideas??? tia! --Mike
[excessive quoting removed by server]
On 2017-05-23 20:05, Darren wrote:
I don't have Windows 10 but try this ... http://www.news2news.com/vfp/?example=22&function=29
Be good to know if that works OK on 10 also - don't see why it shouldn't.
Yes but it looks as though 8 and 10 are reporting the same per the Fox Wiki. I'll try your link Thursday and report back.
The plot thickens ...
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724439(v=vs.85).a spx
From that link ...
With the release of Windows 8.1, the behavior of the GetVersion API has changed in the value it will return for the operating system version. The value returned by the GetVersion function now depends on how the application is manifested.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724429(v=vs.85).a spx
To obtain the full version number for the operating system, call the GetFileVersionInfo function on one of the system DLLs, such as Kernel32.dll, then call VerQueryValue to obtain the \StringFileInfo\<lang><codepage>\ProductVersion subblock of the file version information.
From that I tried ....
oFSO = CREATEOBJECT("scripting.filesystemobject") ? oFso.GetFileVersion("C:\Windows\System32\kernel32.Dll")
On Win 7 Ultimate x64 machine I get "6.1.7601.19018" returned.
VFP : OS(3) 6 | OS(4) 1 | OS(5) 7601 so seems to line up fairly well.
Give it a go on WIN 10 - be interested to see if it works.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com Sent: Wednesday, 24 May 2017 3:38 PM To: profoxtech@leafe.com Subject: RE: How to tell between Win8 and Win10 using Fox commands?
On 2017-05-23 20:05, Darren wrote:
I don't have Windows 10 but try this ... http://www.news2news.com/vfp/?example=22&function=29
Be good to know if that works OK on 10 also - don't see why it shouldn't.
Yes but it looks as though 8 and 10 are reporting the same per the Fox Wiki. I'll try your link Thursday and report back.
[excessive quoting removed by server]
Windows 10 Pro x64 with recent Creator's Update.
WinVer reports Windows 10 Version 1703 (OS build 15063.0)
GetFileVersion() returns 6.2.15063.0
OS(3) returns 6 OS(4) returns 2 OS(5) returns 9200
If you read to the end of that article, it references
http://fox.wikis.com/wc.dll?Wiki~GetWindowsVersion
which provides several different solutions that work.
On Tue, May 23, 2017 at 6:16 PM, mbsoftwaresolutions@mbsoftwaresolutions.com wrote:
I'm tracking the operating system used by my app. According to http://fox.wikis.com/wc.dll?Wiki~VFPFunctionOS~Wiki, it looks like you can't tell between Windows 8 and Windows 10.
Ideas??? tia! --Mike
[excessive quoting removed by server]
The original link said this: " But this is only available in VFP 7.0+. For previous version see Get Windows Version -- Rick Bean"
...so since I'm running VFP9SP2, I discounted that as something for versions prior to VFP7.
On 2017-05-24 06:28, Ted Roche wrote:
If you read to the end of that article, it references
http://fox.wikis.com/wc.dll?Wiki~GetWindowsVersion
which provides several different solutions that work.
On Tue, May 23, 2017 at 6:16 PM, mbsoftwaresolutions@mbsoftwaresolutions.com wrote:
I'm tracking the operating system used by my app. According to http://fox.wikis.com/wc.dll?Wiki~VFPFunctionOS~Wiki, it looks like you can't tell between Windows 8 and Windows 10.
Ideas??? tia! --Mike
[excessive quoting removed by server]