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>WPADDetachDummyExtension</title>
10</head>
11
12<body>
13
14<h1>WPADDetachDummyExtension</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/wpad.h&gt;
21
22#define WPAD_CHAN0               0
23#define WPAD_CHAN1               1
24#define WPAD_CHAN2               2
25#define WPAD_CHAN3               3
26
27BOOL WPADDetachDummyExtension( s32 chan );</code></pre>
28  </dd>
29</dl>
30
31<h2>Arguments</h2>
32<TABLE border="1">
33  <TBODY>
34    <TR>
35<TD width="120" bgcolor="#ffffe8"><code><b><i>chan</i></b></code></TD>
36<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
37    </TR>
38  </TBODY>
39</TABLE>
40<h2>Return Values</h2>
41<p>
42If the device type is restored successfully to <code>WPAD_DEV_CORE</code>, returns <CODE>TRUE</CODE>; otherwise, returns <CODE>FALSE</CODE>.
43</p>
44
45<H2>Description</H2>
46<p>
47For the Wii Remote on the specified channel, changes the device type  to <code>WPAD_DEV_CORE</code>. If the device type has been changed with the <a href="./WPADAttachDummyExtension.html"><code>WPADAttachDummyExtension</code></a> function, use this function to restore the device type to its original status.
48</p>
49<p>
50<font color="red">Because this function is used for debugging applications, it works only with the debug version library. It does not work with the release version library, where <code>FALSE</code> is always the return value.</font>
51</p>
52
53<h2>See Also</h2>
54<p>
55<A href="./toc.html" target="contents">WPAD Functions</A><br> <A href="./WPADAttachDummyExtension.html"><CODE>WPADAttachDummyExtension</CODE></A><br>
56</p>
57
58<H2>Revision History</H2>
59<p>
602007/05/02 Made a change such that <code>FALSE</code> is always returned with the release version library.<br> 2007/04/18 Initial version.<br>
61</P>
62
63<hr><p>CONFIDENTIAL</p></body>
64</html>