WSANSCLASSINFOA structure (winsock2.h)
The WSANSCLASSINFO structure provides individual parameter information for a specific Windows Sockets namespace.
Syntax
typedef struct _WSANSClassInfoA {
LPSTR lpszName;
DWORD dwNameSpace;
DWORD dwValueType;
DWORD dwValueSize;
LPVOID lpValue;
} WSANSCLASSINFOA, *PWSANSCLASSINFOA, *LPWSANSCLASSINFOA;
Members
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.
Remarks
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.
Note
The winsock2.h header defines WSANSCLASSINFO as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | winsock2.h |