1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<title>MB_SetLifeTime</title> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</head> 10<body> 11<h1 align="left">MB_SetLifeTime <IMG src="../../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../../image/TWL.gif" width="24" height="12" border="0" align=middle></h1> 12<h2>Syntax</h2> 13<dl> 14 <dd> 15<CODE>#include <nitro/mb.h></CODE><BR> 16 <BR> 17 <CODE>void MB_SetLifeTime(u16 tableNumber, u16 camLifeTime, u16 frameLifeTime, u16 mpLifeTime);</CODE><br> 18 <br> 19 </dd> 20</dl> 21<h2>Arguments</h2> 22<TABLE border="1" width="100%"> 23 <TBODY> 24 <TR> 25 <TD width="200"><EM><STRONG><FONT face="Courier New">tableNumber</FONT></STRONG></EM></TD> 26 <TD width="800">CAM table number that will have its lifetime set.<br> 27 This is set to <CODE>0xFFFF</CODE> ("all") by default.<br> 28 The meaning of this argument is the same as in the <CODE><a href="../../wm/wm/WM_SetLifeTime.html">WM_SetLifeTime</a></CODE> function.</TD> 29 </TR> 30 <TR> 31 <TD width="200"><EM><STRONG><FONT face="Courier New">camLifeTime</FONT></STRONG></EM></TD> 32 <TD width="800">Lifetime of the CAM table.<br> 33 This is set to 40 (4 seconds) by default.<br> 34 The meaning of this argument is the same as in the <CODE><a href="../../wm/wm/WM_SetLifeTime.html">WM_SetLifeTime</a></CODE> function.</TD> 35 </TR> 36 <TR> 37 <TD width="200"><EM><STRONG><FONT face="Courier New">frameLifeTime</FONT></STRONG></EM></TD> 38 <TD width="800">Lifetime while in infrastructure mode.<br> 39 This is set to 5 by default.<br> 40 The meaning of this argument is the same as in the <CODE><a href="../../wm/wm/WM_SetLifeTime.html">WM_SetLifeTime</a></CODE> function.</TD> 41 </TR> 42 <TR> 43 <TD width="200"><EM><STRONG><FONT face="Courier New">mpLifeTime</FONT></STRONG></EM></TD> 44 <TD width="800">MP communications lifetime.<br> 45 This is set to 40 (4 seconds) by default.<br> 46 The meaning of this argument is the same as in the <CODE><a href="../../wm/wm/WM_SetLifeTime.html">WM_SetLifeTime</a></CODE> function.</TD> 47 </TR> 48 </TBODY> 49</TABLE> 50<h2>Return Values</h2> 51<p>None.</p> 52<H2>Description</H2> 53<P>Specifies the various lifetimes for the WM library that is used internally in the MB library. The internal values specified by this function are used unchanged as arguments to the <CODE><a href="../../wm/wm/WM_SetLifeTime.html">WM_SetLifeTime</a></CODE> function. In a normal game application, the default setting is appropriate, so there is no need to call this function explicitly.<br> This function can be called only after the <CODE><a href="../common/MB_Init.html">MB_Init</a></CODE> function and before the <CODE><A href="MB_StartParent.html">MB_StartParent</A></CODE> function. <br> 54</p> 55<h2>See Also</h2> 56<p><CODE><A href="../common/MB_Init.html">MB_Init</A><BR> <A href="MB_StartParent.html">MB_StartParent</A><BR> <a href="../../wm/wm/WM_SetLifeTime.html">WM_SetLifeTime</a></CODE></P> 57<H2>Revision History</H2> 58<P> 592006/07/19 Changed default values.<BR> 2005/04/11 Initial version.<BR> 60</P> 61<hr><p>CONFIDENTIAL</p></body> 62</html> 63