Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #9491 > unrolled thread

Windows 10 compatibility

Started by"Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it>
First post2016-06-28 09:32 +0200
Last post2016-08-01 11:23 +0200
Articles 5 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Windows 10 compatibility "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2016-06-28 09:32 +0200
    Re: Windows 10 compatibility "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-06-28 10:42 +0200
      Re: Windows 10 compatibility "Claus Wagner" <cwagner@laufwerk.net> - 2016-07-30 18:45 +0200
        Re: Windows 10 compatibility "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-08-01 05:38 +0200
          Re: Windows 10 compatibility "Claus Wagner" <cwagner@laufwerk.net> - 2016-08-01 11:23 +0200

#9491 — Windows 10 compatibility

From"Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it>
Date2016-06-28 09:32 +0200
SubjectWindows 10 compatibility
Message-ID<nkt95q$45e$1@dont-email.me>

[Multipart message — attachments visible in raw view] — view raw

Some time ago someone in one forum has proposed to add "Windows 10 
compatibility" to the programs as in the attached manifest.

I did it for VO and Vulcan programs and it works. The WinAPI function 
GetVersionEx returns 10 instead of 6.2 or 6.3.
Users that use the Bbrowser have to make a change in the function 
bGetOSVersionID. Otherwise the browsers thinks that the Windows version is 
an old one and ignores the alpha blending effects.

Apart from the change of the GetVersionEx I haven't found any differences 
yet and haven't found any documentation what could be different. 
Nevertheless I find it good to show full compatibilty.

Arne Ortlinghaus
ACS Data Systems 

[toc] | [next] | [standalone]


#9492

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2016-06-28 10:42 +0200
Message-ID<dterkiFslp8U1@mid.individual.net>
In reply to#9491
Hi Arne,

using this manifest has some side effects: if you try to write to the
Windows directory with an application using this manifest, a write
error will be returned. If you use an application without this
manifest, the file will be written into the VirtualStore location.

Fortunately there is another function, RtlGetVersion(), that does
return the right Windows version independently from a present manifest.

Wolfgang

P.S. I'm manifesting my applications for nearly two years, and had
found a few places where I was writing to the Windows directory. I have
to admit that all these applications were at least 15 years old.


> Some time ago someone in one forum has proposed to add "Windows 10
> compatibility" to the programs as in the attached manifest.
> 
> I did it for VO and Vulcan programs and it works. The WinAPI function
> GetVersionEx returns 10 instead of 6.2 or 6.3.  Users that use the
> Bbrowser have to make a change in the function bGetOSVersionID.
> Otherwise the browsers thinks that the Windows version is an old one
> and ignores the alpha blending effects.
> 
> Apart from the change of the GetVersionEx I haven't found any
> differences yet and haven't found any documentation what could be
> different. Nevertheless I find it good to show full compatibilty.
> 
> Arne Ortlinghaus
> ACS Data Systems



-- 

[toc] | [prev] | [next] | [standalone]


#9568

From"Claus Wagner" <cwagner@laufwerk.net>
Date2016-07-30 18:45 +0200
Message-ID<nniljo$snl$1@news.albasani.net>
In reply to#9492
Hi Wolfgang,

do you have an example, how to use RtlGetVersion in VO?

Claus


"Wolfgang Riedmann"  schrieb im Newsbeitrag 
news:dterkiFslp8U1@mid.individual.net...

Hi Arne,

using this manifest has some side effects: if you try to write to the
Windows directory with an application using this manifest, a write
error will be returned. If you use an application without this
manifest, the file will be written into the VirtualStore location.

Fortunately there is another function, RtlGetVersion(), that does
return the right Windows version independently from a present manifest.

Wolfgang

P.S. I'm manifesting my applications for nearly two years, and had
found a few places where I was writing to the Windows directory. I have
to admit that all these applications were at least 15 years old.


> Some time ago someone in one forum has proposed to add "Windows 10
> compatibility" to the programs as in the attached manifest.
>
> I did it for VO and Vulcan programs and it works. The WinAPI function
> GetVersionEx returns 10 instead of 6.2 or 6.3.  Users that use the
> Bbrowser have to make a change in the function bGetOSVersionID.
> Otherwise the browsers thinks that the Windows version is an old one
> and ignores the alpha blending effects.
>
> Apart from the change of the GetVersionEx I haven't found any
> differences yet and haven't found any documentation what could be
> different. Nevertheless I find it good to show full compatibilty.
>
> Arne Ortlinghaus
> ACS Data Systems



--  

[toc] | [prev] | [next] | [standalone]


#9570

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2016-08-01 05:38 +0200
Message-ID<e07ui1Fu63kU1@mid.individual.net>
In reply to#9568
Hi Claus,

> do you have an example, how to use RtlGetVersion in VO?


of course:

method Refresh() class clsOsVersion
local strWinOsVersionInfo	is _WinOSVersionInfoEx
local oVersion				as GetWindowsVersion
local cMessage				as string
local nVersion				as dword   
local lReturn				as logic
local ptrFunction			as ptr
local ptrHandle				as ptr  
local lRtlGetVersion		as logic
	

strWinOsVersionInfo.dwOSVersionInfoSize := _sizeof( _WINOSVERSIONINFOEX
)

if ( ptrHandle := GetModuleHandle( String2Psz( "ntdll" ) ) ) !=
null_ptr .and. ( ptrFunction := GetProcAddress( ptrHandle, String2PSZ(
"RtlGetVersion" ) ) ) != null_ptr
  lReturn := Logic( _Cast, PCall( ptrFunction, @strWinOsVersionInfo ) )
  lRtlGetVersion := true
else
  lReturn := GetVersionEx( @strWinOsVersionInfo )
  lRtlGetVersion := false
endif 
// Get the Version Info's from the OS
nMajorVersion		:= strWinOsVersionInfo.dwMajorVersion
nMinorVersion		:= strWinOsVersionInfo.dwMinorVersion
if nMajorVersion >= 6 .and. lRtlGetVersion == false		// ab Windows 8
kann Windows "lügen", aber nicht mit RtlGetVersion()
  oVersion			:= GetWindowsVersion{}
  if oVersion:nMajor > 0 .and. oVersion:nMajor != nMajorVersion
    nMajorVersion		:= oVersion:nMajor
    nMinorVersion		:= oVersion:nMinor
  endif
endif
nBuildNumber		:= strWinOsVersionInfo.dwBuildNumber
nPlatformId			:= strWinOsVersionInfo.dwPlatformId
//szCSDVersion		:= strWinOsVersionInfo.szCSDVersion
for nVersion := 1 upto 128  
  szCSDVersion[nVersion]	:= strWinOsVersionInfo.szCSDVersion[nVersion]
next  
nServicePackMajor 	:= strWinOsVersionInfo.wServicePackMajor
nServicePackMinor	:= strWinOsVersionInfo.wServicePackMinor
nSuiteMask			:= strWinOsVersionInfo.wSuiteMask
nProductType		:= strWinOsVersionInfo.wProductType

HTH

Wolfgang



> 
> Claus
> 
> 
> "Wolfgang Riedmann"  schrieb im Newsbeitrag
> news:dterkiFslp8U1@mid.individual.net...
> 
> Hi Arne,
> 
> using this manifest has some side effects: if you try to write to the
> Windows directory with an application using this manifest, a write
> error will be returned. If you use an application without this
> manifest, the file will be written into the VirtualStore location.
> 
> Fortunately there is another function, RtlGetVersion(), that does
> return the right Windows version independently from a present
> manifest.
> 
> Wolfgang
> 
> P.S. I'm manifesting my applications for nearly two years, and had
> found a few places where I was writing to the Windows directory. I
> have to admit that all these applications were at least 15 years old.
> 
> 
> > Some time ago someone in one forum has proposed to add "Windows 10
> > compatibility" to the programs as in the attached manifest.
> > 
> > I did it for VO and Vulcan programs and it works. The WinAPI
> > function GetVersionEx returns 10 instead of 6.2 or 6.3.  Users that
> > use the Bbrowser have to make a change in the function
> > bGetOSVersionID.  Otherwise the browsers thinks that the Windows
> > version is an old one and ignores the alpha blending effects.
> > 
> > Apart from the change of the GetVersionEx I haven't found any
> > differences yet and haven't found any documentation what could be
> > different. Nevertheless I find it good to show full compatibilty.
> > 
> > Arne Ortlinghaus
> > ACS Data Systems




-- 

[toc] | [prev] | [next] | [standalone]


#9571

From"Claus Wagner" <cwagner@laufwerk.net>
Date2016-08-01 11:23 +0200
Message-ID<nnn4es$ee5$1@news.albasani.net>
In reply to#9570
Thank you very much, Wolfgang!

One hint:
<<  lReturn := Logic( _Cast, PCall( ptrFunction, @strWinOsVersionInfo ) )
is setting lReturn to FALSE, because RtlGetVersion returns 0 
(STATUS_SUCCESS).

Claus


"Wolfgang Riedmann"  schrieb im Newsbeitrag 
news:e07ui1Fu63kU1@mid.individual.net...

Hi Claus,

> do you have an example, how to use RtlGetVersion in VO?


of course:

method Refresh() class clsOsVersion
local strWinOsVersionInfo is _WinOSVersionInfoEx
local oVersion as GetWindowsVersion
local cMessage as string
local nVersion as dword
local lReturn as logic
local ptrFunction as ptr
local ptrHandle as ptr
local lRtlGetVersion as logic


strWinOsVersionInfo.dwOSVersionInfoSize := _sizeof( _WINOSVERSIONINFOEX
)

if ( ptrHandle := GetModuleHandle( String2Psz( "ntdll" ) ) ) !=
null_ptr .and. ( ptrFunction := GetProcAddress( ptrHandle, String2PSZ(
"RtlGetVersion" ) ) ) != null_ptr
  lReturn := Logic( _Cast, PCall( ptrFunction, @strWinOsVersionInfo ) )
  lRtlGetVersion := true
else
  lReturn := GetVersionEx( @strWinOsVersionInfo )
  lRtlGetVersion := false
endif
// Get the Version Info's from the OS
nMajorVersion := strWinOsVersionInfo.dwMajorVersion
nMinorVersion := strWinOsVersionInfo.dwMinorVersion
if nMajorVersion >= 6 .and. lRtlGetVersion == false // ab Windows 8
kann Windows "lügen", aber nicht mit RtlGetVersion()
  oVersion := GetWindowsVersion{}
  if oVersion:nMajor > 0 .and. oVersion:nMajor != nMajorVersion
    nMajorVersion := oVersion:nMajor
    nMinorVersion := oVersion:nMinor
  endif
endif
nBuildNumber := strWinOsVersionInfo.dwBuildNumber
nPlatformId := strWinOsVersionInfo.dwPlatformId
//szCSDVersion := strWinOsVersionInfo.szCSDVersion
for nVersion := 1 upto 128
  szCSDVersion[nVersion] := strWinOsVersionInfo.szCSDVersion[nVersion]
next
nServicePackMajor := strWinOsVersionInfo.wServicePackMajor
nServicePackMinor := strWinOsVersionInfo.wServicePackMinor
nSuiteMask := strWinOsVersionInfo.wSuiteMask
nProductType := strWinOsVersionInfo.wProductType

HTH

Wolfgang



>
> Claus
>
>
> "Wolfgang Riedmann"  schrieb im Newsbeitrag
> news:dterkiFslp8U1@mid.individual.net...
>
> Hi Arne,
>
> using this manifest has some side effects: if you try to write to the
> Windows directory with an application using this manifest, a write
> error will be returned. If you use an application without this
> manifest, the file will be written into the VirtualStore location.
>
> Fortunately there is another function, RtlGetVersion(), that does
> return the right Windows version independently from a present
> manifest.
>
> Wolfgang
>
> P.S. I'm manifesting my applications for nearly two years, and had
> found a few places where I was writing to the Windows directory. I
> have to admit that all these applications were at least 15 years old.
>
>
> > Some time ago someone in one forum has proposed to add "Windows 10
> > compatibility" to the programs as in the attached manifest.
> >
> > I did it for VO and Vulcan programs and it works. The WinAPI
> > function GetVersionEx returns 10 instead of 6.2 or 6.3.  Users that
> > use the Bbrowser have to make a change in the function
> > bGetOSVersionID.  Otherwise the browsers thinks that the Windows
> > version is an old one and ignores the alpha blending effects.
> >
> > Apart from the change of the GetVersionEx I haven't found any
> > differences yet and haven't found any documentation what could be
> > different. Nevertheless I find it good to show full compatibilty.
> >
> > Arne Ortlinghaus
> > ACS Data Systems




--  

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web