[Migrated content. Thread originally posted on 08 February 2006]
Hello, im trying to get working this api but can't, can anyone help?set environment "dll-convention" to 1.
initialize boolean OSVERSIONINFOEX lpVersionInfo.
set dwOSVersionInfoSize to size of OSVERSIONINFOEX.
if dwOSVersionInfoSize = NULL
go Comprobar_Conexiones_2
end-if.
inspect szCSDVersion replacing trailing space by null.
set lpVersionInfo to address of OSVERSIONINFOEX.
if lpVersionInfo = NULL
go Comprobar_Conexiones_2
end-if.
call "kernel32.dll".
call "GetVersionEx" using by value lpVersionInfo
giving boolean.
cancel "kernel32.dll".
01 OSVERSIONINFOEX.
03 dwOSVersionInfoSize pic 9(09) comp-5.
03 dwMajorVersion pic 9(09) comp-5.
03 dwMinorVersion pic 9(09) comp-5.
03 dwBuildNumber pic 9(09) comp-5.
03 dwPlatformId pic 9(09) comp-5.
03 szCSDVersion pic x(128).
03 wServicePackMajor pic 9(05) comp-5.
03 wServicePackMinor pic 9(05) comp-5.
03 wSuiteMask pic 9(05) comp-5.
03 wProductType pic x(01).
03 wReserved pic x(01).
77 lpVersionInfo pic 9(09) comp-5.
77 Boolean pic 9(01).
Microsoft Help About GetVersionEx
Thank you very much



