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="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9<title>WPADSetAcceptConnection</title> 10</head> 11 12<body> 13 14<h1>WPADSetAcceptConnection</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/wpad.h> 19 20BOOL WPADSetAcceptConnection( BOOL accept ); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th>accept</th> 27<td>Whether to accept a connection from a Wii Remote.</td> 28 </tr> 29</table> 30 31<h2>Return Values</h2> 32<p>If the configuration was changed, the function returns <code>TRUE</code>. If not, <code>FALSE</code> is returned.</p> 33 34<H2>Description</H2> 35<p> 36Sets whether the Wii console will accept connections from Wii Remotes. In the initial state, the Wii console will accept connections. 37</p> 38<p> 39This function cannot change settings if it is called at library initialization or during the close process. 40</p> 41<p> 42Note that refusing a connection using this function does not cancel any of the current Wii Remote connections. This means that even if the application is set to refuse connections after the first one, two units may become connected if a connection process is run from two Wii Remotes at the same time. 43</p> 44<p> 45Even if connections are disabled using this function, note that the registration procedure is not prohibited. To prohibit the pairing procedure, get the SYNCHRO event using the <a href="./WPADSetSyncDeviceCallback.html"><code>WPADSetSyncDeviceCallback</code></a> function and be sure you do not call the <a href="./WPADStartSyncDevice.html"><code>WPADStartSyncDevice</code></a> function even if the SYNCHRO is pressed. 46</p> 47 48<h2>See Also</h2> 49<p class="reference"> 50<a href="./WPADGetStatus.html">WPADGetStatus</a>, 51<a href="./WPADSetSyncDeviceCallback.html">WPADSetSyncDeviceCallback</a>, 52<a href="./WPADStartSyncDevice.html">WPADStartSyncDevice</a>, 53<a href="./WPADGetAcceptConnection.html">WPADGetAcceptConnection</a> 54</p> 55 56<H2>Revision History</H2> 57<P> 582007/09/18 Changed the format of the argument list.<br>2006/10/23 Added a description of the pairing procedure.<br>2006/09/27 Changed the function, and explained when the settings cannot be changed.<br>2006/09/06 Initial version.<br> 59</P> 60 61<hr><p>CONFIDENTIAL</p></body> 62</html>