WSHGetBroadcastSockaddr

INT
    WSHGetBroadcastSockaddr(
        IN PVOID
HelperDllSocketContext,
        OUT PSOCKADDR Sockaddr,
        OUT PINT SockaddrLength
        );

WSHGetBroadcastSockaddr obtains a valid broadcast address for a socket.

Parameters

HelperDllSocketContext
Points to a per-socket context area, allocated and initialized by the WSH DLL WSHOpenSocket2 function.
Sockaddr
Points to a buffer in which WSHGetBroadcasrSockaddr returns a valid broadcast address, formatted as a SOCKADDR structure.
SockaddrLength
Points to a variable in which WSHGetBroadcastSockaddr returns the number of bytes it set in the SOCKADDR structure.

Return Value

WSHGetBroadcastSockaddr returns NO_ERROR to indicate success, or WSAEFAULT to indicate that the buffer at Sockaddr is insufficient in size to contain a full SOCKADDR structure.