Results 1 to 2 of 2

Thread: Reading Winsock2 Version

  1. #1
    L_Alexakis
    Guest
    Hello,

    I would appreciate it if anyone can help! I am using a registry module for finding out version numbers of different software components. I need to be able to find out if a system has Winsock 2.2 installed. When reading from the registry, I have only been able to find a single Key that returns the Main version number, which is 2.0

    DOes anyone have any Ideas?

    Thanks.

  2. #2
    New Member
    Join Date
    Apr 2001
    Posts
    14
    With just a bit of research you can use the below clues to retrieve the Winsock version rather than going through the registry (I don't know where it is in the registry, and it may vary depending on the Win OS)

    I recommend www.allapi.net to look up the function and find an example of it being used.

    Code:
    Declare Function WSAStartup Lib "WSOCK32" (ByVal wVersionRequested As Integer, lpWSADATA As WSADataInfo) As Long
    Type WSADataInfo
        wVersion As Integer
        wHighVersion As Integer
        szDescription As String * WSADESCRIPTION_LEN
        szSystemStatus As String * WSASYS_STATUS_LEN
        iMaxSockets As Integer
        iMaxUdpDg As Integer
        lpVendorInfo As String
    End Type

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