ServerBrowserListQueryError

GameSpy SDK

ServerBrowserListQueryError

Returns the ServerList error string, if any.

const gsi_char * ServerBrowserListQueryError(
ServerBrowser sb );
RoutineRequired HeaderDistribution
ServerBrowserListQueryError<sb_serverbrowsing.h>SDKZIP

Return Value

If a list error has occured, a string description of the error is returned. Otherwise, an empty string "" is returned.

Parameters

sb
[in] ServerBrowser object intialized with ServerBrowserNew.

Remarks

The ServerBrowserListQueryError function returns the last string error reported by the server.  For localization purposes, you may safely assume that this string will not change, and test for it as you would a numeric error code.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
ServerBrowserListQueryErrorServerBrowserListQueryErrorAServerBrowserListQueryErrorW

ServerBrowserListQueryErrorW and ServerBrowserListQueryErrorA are UNICODE and ANSI mapped versions of ServerBrowserListQueryError. The arguments of ServerBrowserListQueryErrorA are ANSI strings; those of ServerBrowserListQueryErrorW are wide-character strings.

Section Reference: Gamespy Server Browsing SDK

See Also: ServerBrowserNew