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
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/wpad.h&gt;
21
22BOOL WPADSetAcceptConnection( BOOL accept );</CODE></pre>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27<p>Whether or not to accept a connection from a Wii Remote.</p>
28
29
30<h2>Return Values</h2>
31<p>If the configuration was changed, the function returns <code>TRUE</code>. If not, <code>FALSE</code> is returned.</p>
32
33<H2>Description</H2>
34<p>
35Sets whether the Wii console will accept connections from Wii Remotes. In the initial state, the Wii console will accept connections.
36</p>
37<p>
38This function cannot change settings if it is called at library initialization or in the close process.
39</p>
40<p>
41Note 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.
42</p>
43<p>
44Even if connections are disabled using this function, note that the registration procedure is not prohibited. To prohibit the registration procedure, get the SYNCHRO button event using <a href="./WPADSetSyncDeviceCallback.html"><code>WPADSetSyncDeviceCallback</code></a> and be sure you do not call <a href="./WPADStartSyncDevice.html"><code>WPADStartSyncDevice</code></a> even if SYNCHRO is pressed.
45</p>
46
47<h2>See Also</h2>
48<p>
49<A href="./toc.html" target="contents">WPAD Functions</A><br> <a href="./WPADGetStatus.html"><code>WPADGetStatus</code></a>, <a href="./WPADSetSyncDeviceCallback.html"><code>WPADSetSyncDeviceCallback</code></a>, <a href="./WPADStartSyncDevice.html"><code>WPADStartSyncDevice</code></a>, <a href="./WPADGetAcceptConnection.html"><code>WPADGetAcceptConnection</code></a><br>
50</p>
51
52<H2>Revision History</H2>
53<P>
542006/10/23 Added a description of the registration procedure.<br> 2006/09/27 Added a description of times when the API and settings cannot be changed. <br> 2006/09/06 Initial version.<br>
55</P>
56
57<hr>
58<P>CONFIDENTIAL</p>
59</BODY>
60</HTML>