Detect Windows OS

Just starting out? Need help? Post your questions and find answers here.
Waussie
User
User
Posts: 24
Joined: Fri Nov 11, 2005 12:14 pm

Detect Windows OS

Post by Waussie »

I'm trying to detect the windows OS.
But the function
MessageRequester("OS Version",OSVersionText())
reports my Windows 7 as windows Vista.

Any ideas?
Which registrykey contains the ostype?
Currently coding the unbelievable WFS program...
You'll know it, when it gets released...
PureLust
Enthusiast
Enthusiast
Posts: 478
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

Re: Detect Windows OS

Post by PureLust »

Waussie wrote:MessageRequester("OS Version",OSVersionText())
reports my Windows 7 as windows Vista.
Where do you get the Function "OSVersionText()" from?
From Droopy's Lib?
So it's a bug in Droopy's Lib - not in PB.

This native PB-check should work fine on your Machine:

Code: Select all

Select OSVersion()
  Case #PB_OS_Windows_Vista
    MessageRequester("Info", "Windows Vista")

  Case #PB_OS_Windows_7
    MessageRequester("Info", "Windows 7")
    
EndSelect
Greetz, PL.
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
Post Reply