Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" _ ( _ lpVersionInformation As OSVERSIONINFO _ ) _ As Long
-- François Picalausa FAQ VB : http://faq.vb.free.fr MSDN : http://msdn.microsoft.com
"Geko" a écrit dans le message de news:06d901c3891b$eb8944f0$
Bonjour,
Comment savoir sur quel OS le client roule mon appli ?
Merci !
Bonjour/soir,
Tu peux le voir par l'API GetVersionEx:
http://msdn.microsoft.com/library/en-us/sysinfo/base/getversionex.asp
Private Type OSVERSIONINFO
dwOSVersionInfoSize As Long
dwMajorVersion As Long
dwMinorVersion As Long
dwBuildNumber As Long
dwPlatformId As Long
szCSDVersion As String * 128 ' Maintenance string for PSS usage
End Type
Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" _
( _
lpVersionInformation As OSVERSIONINFO _
) _
As Long
--
François Picalausa
FAQ VB : http://faq.vb.free.fr
MSDN : http://msdn.microsoft.com
"Geko" <suzzzie89@hotmail.com> a écrit dans le message de
news:06d901c3891b$eb8944f0$a401280a@phx.gbl
Bonjour,
Comment savoir sur quel OS le client roule mon appli ?
Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" _ ( _ lpVersionInformation As OSVERSIONINFO _ ) _ As Long
-- François Picalausa FAQ VB : http://faq.vb.free.fr MSDN : http://msdn.microsoft.com
"Geko" a écrit dans le message de news:06d901c3891b$eb8944f0$
Bonjour,
Comment savoir sur quel OS le client roule mon appli ?
Merci !
Pierre Alexis
Salut François,
Tu as écrit :
Tu peux le voir par l'API GetVersionEx: http://msdn.microsoft.com/library/en-us/sysinfo/base/getversionex.asp
N'oublions pas que (extrait de la MSDN) :
"If your application should run on Windows 2000 and later versions, always use VerifyVersionInfo instead of GetVersionEx to check the system version. Applications must use this technique to meet the Certified for Windows 2000 application specification."
Tu peux le voir par l'API GetVersionEx:
http://msdn.microsoft.com/library/en-us/sysinfo/base/getversionex.asp
N'oublions pas que (extrait de la MSDN) :
"If your application should run on Windows 2000 and later versions,
always use VerifyVersionInfo instead of GetVersionEx to check the system
version. Applications must use this technique to meet the Certified for
Windows 2000 application specification."
Tu peux le voir par l'API GetVersionEx: http://msdn.microsoft.com/library/en-us/sysinfo/base/getversionex.asp
N'oublions pas que (extrait de la MSDN) :
"If your application should run on Windows 2000 and later versions, always use VerifyVersionInfo instead of GetVersionEx to check the system version. Applications must use this technique to meet the Certified for Windows 2000 application specification."