How detect windows 10 ?

How detect windows 10 ?

Postby Romeo » Wed Aug 26, 2015 10:07 am

HI,

Anyone can help me to detect if running with Windows10 ?

The function ver:=GetVersion()

ver[1] 6
ver[2] 2

It is egual to Windos 8.1 ? (or not)

Any help

tks
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: How detect windows 10 ?

Postby Antonio Linares » Wed Aug 26, 2015 10:14 am

Already included in FWH 15.07

Code: Select all  Expand view
#define  HKEY_LOCAL_MACHINE  2147483650  // 0x80000002

function IsWindows10()

   local oReg := TReg32():New( HKEY_LOCAL_MACHINE,;
                               "SOFTWARE\Microsoft\Windows NT\CurrentVersion",;
                               .f. )
   local cProductName := oReg:Get( "ProductName" )

   oReg:Close()

return "Windows 10" $ cProductName
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How detect windows 10 ?

Postby Romeo » Thu Aug 27, 2015 9:57 am

Resolved as always

tks
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 33 guests