Hello,
I would like to know if there is a way to find out in what operating system the applicatin run.
is there any code in VB which find it ?
Thanks,
Tami.
Printable View
Hello,
I would like to know if there is a way to find out in what operating system the applicatin run.
is there any code in VB which find it ?
Thanks,
Tami.
aye, indeed there is. A couple of API calls.
Public Declare Sub GetSystemInfo Lib "kernel32" Alias "GetSystemInfo" (lpSystemInfo As SYSTEM_INFO)
Public Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (lpVersionInformation As OSVERSIONINFO) As Long
Public Type SYSTEM_INFO
dwOemID As Long
dwPageSize As Long
lpMinimumApplicationAddress As Long
lpMaximumApplicationAddress As Long
dwActiveProcessorMask As Long
dwNumberOrfProcessors As Long
dwProcessorType As Long
dwAllocationGranularity As Long
dwReserved As Long
End Type
Public 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
td.
err, sorry for the crap formatting ;-!
td.
thank u very much !