Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This header is used by multiple technologies. For more information, see:
ws2def.h contains the following programming interfaces:
Structures
| ADDRINFO_DNS_SERVER  Represents a custom Domain Name System (DNS) server, used in the Winsock APIs.  | 
| ADDRINFOA  Used by the getaddrinfo function to hold host address information.  | 
| ADDRINFOEX2A  Used by the GetAddrInfoEx function to hold host address information when both a canonical name and a fully qualified domain name have been requested. (ANSI)  | 
| ADDRINFOEX2W  Used by the GetAddrInfoEx function to hold host address information when both a canonical name and a fully qualified domain name have been requested. (Unicode)  | 
| ADDRINFOEX3  Used by the GetAddrInfoEx function to hold host address information when a specific network interface has been requested. (addrinfoex3W)  | 
| ADDRINFOEX4  Used by the GetAddrInfoEx function to hold host address information when a specific network interface has been requested. (addrinfoex4W)  | 
| ADDRINFOEX5  Used by the GetAddrInfoExW function to hold host address information when a specific network interface has been requested. (ADDRINFOEX5)  | 
| ADDRINFOEX6  Used by the GetAddrInfoExW function to hold host address information when a specific network interface has been requested. (ADDRINFOEX6)  | 
| ADDRINFOEXA  Used by the GetAddrInfoEx function to hold host address information. (ANSI)  | 
| ADDRINFOEXW  Used by the GetAddrInfoEx function to hold host address information. (Unicode)  | 
| ADDRINFOW  Used by the GetAddrInfoW function to hold host address information.  | 
| CSADDR_INFO  The CSADDR_INFO (ws2def.h) structure contains Windows Sockets address information for a socket, network service, or namespace provider.  | 
| SOCKADDR  The SOCKADDR structure is a generic structure that specifies a transport address.  | 
| SOCKADDR_IN  The SOCKADDR_IN structure specifies a transport address and port for the AF_INET address family.  | 
| SOCKADDR_STORAGE_LH  The SOCKADDR_STORAGE structure is a generic structure that specifies a transport address. (SOCKADDR_STORAGE_LH)  | 
| SOCKADDR_STORAGE_XP  The SOCKADDR_STORAGE structure is a generic structure that specifies a transport address.S  | 
| SOCKET_ADDRESS  SOCKET_ADDRESS structure stores protocol-specific address information.  | 
| SOCKET_ADDRESS_LIST  The SOCKET_ADDRESS_LIST structure defines a variable-sized list of transport addresses.  | 
| SOCKET_PROCESSOR_AFFINITY  Contains the association between a socket and an RSS processor core and NUMA node.  | 
| WSABUF  The WSABUF structure enables the creation or manipulation of a data buffer used by some Winsock functions.  | 
| WSACMSGHDR  The CMSGHDR structure defines the header for a control data object that is associated with a datagram.  | 
| WSAMSG  Used with the WSARecvMsg and WSASendMsg functions to store address and optional control information about connected and unconnected sockets as well as an array of buffers used to store message data.  | 
Enumerations
| SCOPE_LEVEL  The SCOPE_LEVEL enumeration is used with the IP_ADAPTER_ADDRESSES structure to identify scope levels for IPv6 addresses.  |