-
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.
-
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