Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure is used to store information about Windows sockets and is called by WSAStartup.

Syntax

typedef struct WSPData {
  WORD 
wVersion;
  WORD 
wHighVersion;
  WCHAR 
szDescription[WSPDESCRIPTION_LEN+1];
} WSPDATA, FAR * LPWSPDATA;

Members

wVersion

Version of the Windows Sockets SPI specification that the Windows Sockets service provider expects the caller to use.

wHighVersion

Highest version of the Windows Sockets SPI specification that this service provider can support (also encoded as above). Typically this will be the same as wVersion.

szDescription

Null-terminated Unicode string into which the Windows Sockets provider copies a description of itself. The text (up to 256 characters in length) can contain any characters except control and formatting characters: the most likely use to which an SPI client will put this is to display it (possibly truncated) in a status message.

Requirements

Header ws2spi.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also