WM_IsValidGameInfo

Syntax

#include <nitro/wm.h>

static inline BOOL WM_IsValidGameInfo( const WMGameInfo* gameInfo, u16 gameInfoLength );

Arguments

gameInfo Pointer to the WMGameInfo structure.
gameInfoLength Length of the WMGameInfo structure.

Return Values

Returns TRUE if the WMGameInfo structure is valid.

Description

Checks if the WMGameInfo structure in the beacon information, obtained using the WM_StartScan or WM_StartScanEx function, has valid values. Internally, this checks whether gameInfoLength is set to an appropriate value and whether gameInfo->magicNumber is equal to WM_GAMEINFO_MAGIC_NUMBER.

See Also

WM_IsValidGameBeacon
WM_StartScan
WM_StartScanEx

Revision History

2009/03/04 Revised an explanation related to internal processing.
2006/02/20 Initial version.


CONFIDENTIAL