Networking & Internet APIs

Overview

This section provides comprehensive documentation for Windows APIs related to networking and internet connectivity. Explore the interfaces, functions, and structures that enable robust network communication, from low-level socket programming to high-level web services integration.

Key API Categories

Winsock (Berkeley Sockets)

Low-level socket interface for reliable and unstructured data transmission.

Winsock Kernel (WSK)

Kernel-mode socket interface for drivers and network filter components.

WinINet

High-level API for applications to access Internet resources, supporting HTTP, FTP, and Gopher protocols.

Windows Sockets Direct API (WSAPI)

Enables kernel-mode network drivers to provide network functionality to user-mode applications.

Network List Manager

APIs for enumerating network connections, getting network status, and managing network profiles.

IP Helper API

Provides functions for retrieving and modifying IP routing, network configuration, and statistical information.

Featured Topics

TCP/IP Programming

Learn best practices for developing TCP/IP client and server applications.

Making HTTP Requests with WinINet

Detailed examples of sending GET and POST requests.

Detecting Network Changes

Implementing notifications for network connectivity events.

Commonly Used Functions

socket()

Creates a socket that is bound to a specific transport service provider.

SOCKET socket(
  [in] int af,
  [in] int type,
  [in] int protocol
);
InternetOpen()

Initializes an application's use of the WinINet functions.

HINTERNET InternetOpen(
  [in]           LPCTSTR lpszAgent,
  [in]           DWORD   dwAccessType,
  [in, optional] LPCTSTR lpszProxy,
  [in, optional] LPCTSTR lpszHost,
  [in]           DWORD   dwFlags
);
GetAdaptersInfo()

Retrieves detailed information about the network adapters installed on the local computer.

ULONG GetAdaptersInfo(
  [out] PIP_ADAPTER_INFO AdapterInfo,
  [in, out] PULONG SizePointer
);