Windows Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 5.41

Winsock - Windows Sockets API

This chapter provides a quick introduction of Winsock 2 API. Topics include Windows Socket 2.2.2 API specification; Winsock 2 API DLL - WS2_32.DLL; Winsock SPI basic service provider - MSWSOCK.DLL; Winsock SPI LSP (Layered Service Provider); LSP related spyware trojans; LSP stack repair tool - LSP-Fix.

What is Winsock (Windows Socket) API?

Winsock 2 API Architecture

Winsock 2 SPI and LSP Layers

mswsock.dll - Microsoft Windows Sockets 2.0 Service Provider

"netsh winsock show catalog" - Showing Winsock 2 LSP

Winsock 2 LSP and Spyware Trojans

rundlll.dll - Winsock 2 LSP Spyware Trojan

Winsock 2 LSP Stack Registry Corruption

LSP-Fix - LSP Stack Repair Tool

Conclusion:

  • Winsock 2.2.2 is the latest version of Winsock (Windows Socket) API specification that defines how network applications should access underlying TCP/IP services.
  • Windows XP systems uses Winsock 3 DLL files: WS2_32.DLL, WSOCK32.DLLm, and WINSOCK.DLL.
  • Winsock API uses SPI (Service Provider Interface) to organize underlying TCP/IP service providers as a stack of layers called LSP (Layered Service Provider)
  • mswsock.dll is the Microsoft implementation of SPI as the basic TCP/IP service provider
  • Winsock's LSP design can be attacked by spyware to install trajon DLL files to scan your network traffic for your personal information like passwords.
  • Winsock's LSP stack entries can be corrupted. Repairing LSP stack requires tools like LSP-Fix.

Table of Contents

 About This Windows Tutorial Book

 "Paint" Program and Computer Graphics

 GIMP - GNU Image Manipulation Program

 JPEG Image File Format Quality and Size

 GIF Image File Format and Transparent Background

 "WinZip" - ZIP File Compression Tool

 "WinRAR" - RAR and ZIP File Compression Tool

 FTP Server, Client and Commands

 "FileZilla" - Free FTP Client and Server

 Web Server Log Files and Analysis Tool - "Analog"

 Spyware Adware Detection and Removal

 IE Addon Program Listing and Removal

 Vundo (VirtuMonde/VirtuMundo) - vtsts.dll Removal

 Trojan and Malware "Puper" Description and Removal

 VSToolbar (VSAdd-in.dll) - Description and Removal

 Spybot - Spyware Blocker, Detection and Removal

 Setting Up and Using Crossover Cable Network

 Home Network Gateway - DSL Modem/Wireless Router

 Windows Task Manager - The System Performance Tool

 "tasklist" Command Line Tool to List Process Information

 "msconfig" - System Configuration Tool

 Configuring and Managing System Services

 Windows Registry Key and Value Management Tools

 Startup Programs Removal for Better System Performance

Winsock - Windows Sockets API

 Glossary of Terms

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2008
Winsock - Windows Sockets API