1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.2.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>WM_IsValidGameInfo</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">WM_IsValidGameInfo <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></H1> 15<h2>Syntax</h2> 16<dl> 17 <dd><PRE><CODE>#include <nitro/wm.h> 18 19static inline BOOL WM_IsValidGameInfo( const <A href="WMGameInfo.html">WMGameInfo</A>* gameInfo, u16 gameInfoLength ); 20</CODE></PRE></dd> 21</dl> 22 23<h2>Arguments</h2> 24<table border="1" width="100%"> 25 <tbody> 26 <TR> 27 <TD width="200"><EM><STRONG><FONT face="Courier New">gameInfo</FONT></STRONG></EM></TD> 28 <TD width="800">Specifies a pointer to the <CODE>WMGameInfo</CODE> structure. 29 </TD> 30 </TR> 31 <TR> 32 <TD width="200"><EM><STRONG><FONT face="Courier New">gameInfoLength</FONT></STRONG></EM></TD> 33 <TD width="800">Specifies the length of the <CODE>WMGameInfo</CODE> structure. 34 </TD> 35 </TR> 36 </tbody> 37</table> 38 39<h2>Return Values</h2> 40<p> 41Returns TRUE if the <CODE>WMGameInfo</CODE> structure is valid. 42</p> 43 44<H2>Description</H2> 45<P> 46Checks if the <CODE>WMGameInfo</CODE> structure in the beacon information, obtained using the <A href="WM_StartScan.html"><CODE>WM_StartScan</CODE></A> or <A href="WM_StartScanEx.html"><CODE>WM_StartScanEx</CODE></A> function, has valid values. Internally, a check is made that gameInfoLength is sufficient in size, and that gameInfo->magicNumber is equal to WM_GAMEINFO_MAGIC_NUMBER. 47</P> 48 49<h2>See Also</h2> 50<p><CODE><A href="WM_IsValidGameBeacon.html">WM_IsValidGameBeacon</A>, <A href="WM_StartScan.html">WM_StartScan</A>, <A href="WM_StartScanEx.html">WM_StartScanEx</A></CODE></p> 51 52<H2>Revision History</H2> 53<P> 542006/02/20 Initial version. 55</P> 56<hr><p>CONFIDENTIAL</p></body> 57</html> 58