WSHGetWSAProtocolInfo

INT
    WSHGetWSAProtocolInfo(
        IN LPWSTR
ProviderName,
        OUT LPWSAPROTOCOL_INFOW *ProtocolInfo,
        OUT LPDWORD ProtocolInfoEntries
        );

WSHGetWSAProtocolInfo returns a pointer to a WSAPROTOCOL_INFOW structure, which describes the characteristics of the protocol(s) supported by this helper DLL. This function is only called during setup of the WSH DLL.

Parameters

ProviderName
Points to a buffered zero-terminated string specifying the name of the provider.
ProtocolInfo
Points to a buffer in which WSHGetWSAProtocolInfo returns the characteristics of the protocol, formatted as a WSAPROTOCOL_INFOW structure.
ProtocolInfoEntries
Points to a variable in which WSHGetWSAProtocolInfo returns the number of entries in the array returned at ProtocolInfo.

Return Value

WSHGetWSAProtocolInfo returns zero if the operation was successful. Otherwise, WSHGetWSAProtocolInfo returns WSAEFAULT to indicate a problem with the input buffer parameters.