The WSANSCLASSINFO structure provides individual parameter information for a specific Windows Sockets namespace.
typedef struct _WSANSClassInfoA {
LPSTR lpszName;
DWORD dwNameSpace;
DWORD dwValueType;
DWORD dwValueSize;
LPVOID lpValue;
} WSANSCLASSINFOA, *PWSANSCLASSINFOA, *LPWSANSCLASSINFOA;
lpszName
String value associated with the parameter, such as SAPID, TCPPORT, and so forth.
dwNameSpace
GUID associated with the namespace.
dwValueType
Value type for the parameter, such as REG_DWORD or REG_SZ, and so forth.
dwValueSize
Size of the parameter provided in lpValue, in bytes.
lpValue
Pointer to the value of the parameter.
The WSANSCLASSINFO structure is defined differently depending on whether ANSI or UNICODE is used. The above syntax block applies to ANSI; for UNICODE, the datatype for lpszName is LPWSTR.
Header: Declared in winsock2.h.
Library: Use ws2_32.lib.