Results 1 to 6 of 6

Thread: Need help DETECTING OS Harware / IE Version

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2001
    Location
    Melbourne, Australia
    Posts
    45

    Angry Need help DETECTING OS Harware / IE Version

    Hi Folks.

    I'm trying to detect OS versions, including Chip type (eg. PIII), etc.

    And i'm trying to detect IE Versions (eg. IE version 5.0, 5.5, 6.0, etc.)

    Also, can you check if a proxy is being used by IE? and show what the proxy is.

    Also, can u you check for COOKIES? and what the security level is? (ie high, medium, etc) ?

    What about IP Address(s) of the computer?

    This is for a support program for our office and clients, -NOT- some lamezor spam / adware crap *spits*

    Thank you kindly to any help in advance.

    Regards: Pure Krome.

  2. #2
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    Version of windows
    VB Code:
    1. Option Explicit
    2. Private Declare Function GetVersion Lib "kernel32" () As Long
    3. Public Function GetVersion() As String
    4.     Dim Ver As Long
    5.     Dim WinVer As Long
    6.     Ver = GetVersion()
    7.     WinVer = Ver And &HFFFF&
    8.     GetWinVersion = Format((WinVer Mod 256) + ((WinVer \ 256) / 100), "Fixed")
    9. End Function
    10.  
    11. Private Sub Form_Load()
    12.     MsgBox "Version: " + GetVersion
    13. End Sub

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    1. Version of Windows
    VB Code:
    1. Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef lpVersionInformation As OSVERSIONINFO) As Long
    2.  
    3. Private Type OSVERSIONINFO
    4.     dwOSVersionInfoSize As Long
    5.     dwMajorVersion As Long
    6.     dwMinorVersion As Long
    7.     dwBuildNumber As Long
    8.     dwPlatformId As Long
    9.     szCSDVersion As String * 128
    10. End Type
    11.  
    12. Private Const VER_PLATFORM_WIN32s = 0
    13. Private Const VER_PLATFORM_WIN32_WINDOWS = 1
    14. Private Const VER_PLATFORM_WIN32_NT = 2
    15.  
    16. Private Function LoWord(lngIn As Long) As Integer
    17.    If (lngIn And &HFFFF&) > &H7FFF Then
    18.       LoWord = (lngIn And &HFFFF&) - &H10000
    19.    Else
    20.       LoWord = lngIn And &HFFFF&
    21.    End If
    22. End Function
    23.  
    24. Private Function ShowWinVersion(vLabel As Label)
    25. Dim version As OSVERSIONINFO
    26. Dim strPlatform As String
    27.  
    28.     version.dwOSVersionInfoSize = Len(version)
    29.     GetVersionEx version
    30.  
    31.     If version.dwPlatformId = 1 And version.dwMinorVersion = 10 And LoWord(version.dwBuildNumber) = 1998 Then
    32.         strPlatform = "Microsoft Windows 98 "
    33.     ElseIf version.dwPlatformId = 1 And version.dwMinorVersion = 10 And LoWord(version.dwBuildNumber) = 2222 Then
    34.         strPlatform = "Microsoft Windows 98 SE "
    35.     ElseIf version.dwPlatformId = 1 And version.dwMinorVersion = 90 And LoWord(version.dwBuildNumber) = 3000 Then
    36.         strPlatform = "Microsoft Windows ME "
    37.     ElseIf version.dwPlatformId = 1 And version.dwMinorVersion = 0 And LoWord(version.dwBuildNumber) = 950 Then
    38.         strPlatform = "Microsoft Windows 95 "
    39.     ElseIf version.dwPlatformId = 1 And version.dwMinorVersion = 0 And LoWord(version.dwBuildNumber) = 1111 Then
    40.         strPlatform = "Microsoft Windows 95B "
    41.     End If
    42.            
    43.     If version.dwPlatformId = 2 And version.dwMajorVersion = 3 Then
    44.         strPlatform = "Microsoft Windows NT 3.51 "
    45.     ElseIf version.dwPlatformId = 2 And version.dwMajorVersion = 4 Then
    46.         strPlatform = "Microsoft Windows NT "
    47.     ElseIf version.dwPlatformId = 2 And version.dwMajorVersion = 5 Then
    48.         strPlatform = "Microsoft Windows 2000 "
    49.     End If
    50.    
    51.    strPlatform = strPlatform & "v" & Format(version.dwMajorVersion) & "." & _
    52.                        Format(version.dwMinorVersion) & " (Build " & LoWord(version.dwBuildNumber) & ")"
    53.    
    54.     vLabel.Alignment = 2
    55.     vLabel.BackStyle = 0
    56.     vLabel.Caption = strPlatform
    57. End Function
    58.  
    59. Private Sub Form_Load()
    60. 'Developed by amitabh
    61.     ShowWinVersion Label1
    62. End Sub
    2. IE Version
    VB Code:
    1. Private Declare Function DllGetVersion Lib "Shlwapi.dll" (pdvi As DLLVERSIONINFO) As Long
    2.  
    3. Private Const NOERROR = 0
    4.  
    5. Private Type DLLVERSIONINFO
    6.     cbSize As Long
    7.     dwMajor As Long
    8.     dwMinor As Long
    9.     dwBuildNumber As Long
    10.     dwPlatformID As Long
    11. End Type
    12.  
    13. Private Function GetIEVersion(MajorVer As Long, MinorVer As Long, Optional BuildVer As Long) As String
    14.    
    15.     Dim IEVer As DLLVERSIONINFO
    16.     Dim CallIt As Long
    17.    
    18.     ' Reset version info
    19.     MajorVer = 0
    20.     MinorVer = 0
    21.     BuildVer = 0
    22.    
    23.     ' Set the cbSize of the DLLVERSIONINFO structure as this needs to be filled
    24.     ' before calling the version info function
    25.     IEVer.cbSize = Len(IEVer)
    26.    
    27.     ' Call the function that will return the version info
    28.     CallIt = DllGetVersion(IEVer)
    29.    
    30.     If CallIt = NOERROR Then
    31.         ' Return a string and values. First the values
    32.         With IEVer
    33.             MajorVer = .dwMajor
    34.             MinorVer = .dwMinor
    35.             BuildVer = .dwBuildNumber
    36.         End With
    37.         ' ...and the string
    38.         GetIEVersion = MajorVer & "." & MinorVer & "." & BuildVer
    39.     Else
    40.         ' There was an error.. Might be because IE isn't installed.
    41.         GetIEVersion = "ERROR"
    42.     End If
    43.    
    44. End Function
    45.  
    46. Private Sub Command1_Click()
    47. Dim GetTheVer As String
    48. Dim MyMajorVer As Long
    49. Dim MyMinorVer As Long
    50. Dim MyBuildVer As Long
    51.  
    52. ' Call the GetIEVersion Function to get IE Version info
    53. GetTheVer = GetIEVersion(MyMajorVer, MyMinorVer, MyBuildVer)
    54. MsgBox MyMajorVer & " " & MyMinorVer & " " & MyBuildVer
    55.  
    56. End Sub
    3. Don't know how to check the proxy information.
    4. Don't know how to check the cookies.
    5. Add A Winsock control to your program
    VB Code:
    1. Private Sub Command1_Click()
    2. Label1.Caption = WinSock1.LocalIP
    3. End Sub

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2001
    Location
    Melbourne, Australia
    Posts
    45

    Smile

    Thanks guys

    -> Hack, i've used your code and made my own IE determining thing .. which works great. Thank you.


    -> Hack and INF3RN0666: Does it determine XP?


    -PK-

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Originally posted by Pure Krome
    Hack and INF3RN0666: Does it determine XP?
    I don't know about XP. Based on questions I've seen posted on this forum about XP, if I can go through the rest of my career and life without ever having to deal with that OS, I will be a happy man. I recently purchased another workstation for my home. It came with XP on it. A half an hour after I booted it for the first time, it was running NT4 workstation.

  6. #6

    Thread Starter
    Member
    Join Date
    Apr 2001
    Location
    Melbourne, Australia
    Posts
    45
    Hi guys.

    wether or not we like / dislike XP, i still need to determine it.


    and you traded XP for NT 4.0 ? you must be insane. at least go back to w2k. otherwise, mandrake linux....


    anyways .... i still need to determine that OS.

    it's a shame MS just don't release a sysinfo.dll ffs.

    -PK-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width