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 http-equiv="Content-Style-Type" content="text/css"> 6<TITLE>NWC24CheckUserId</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8</HEAD> 9<BODY> 10<H1>NWC24CheckUserIdRegion</H1> 11 12<H2>Syntax</H2> 13<DL> 14 <DD><PRE><CODE>#include <revolution/nwc24.h></CODE></PRE> 15 <DD><PRE><CODE><A HREF="../Types/NWC24Err.html">NWC24Err</A> NWC24CheckUserIdRegion( <A HREF="../Types/NWC24UserId.html">NWC24UserId</A> <EM>userId</EM> );</CODE></PRE> 16</DL> 17 18<H2>Description</H2> 19<P> 20Checks whether the user ID (Wii number) specified by <code><em><strong>userId</strong></em></code> is valid and belongs to a Wii console in the same region as the local Wii console. 21</P> 22<P> 23Apart from determining the region, this function behaves identically to <A HREF="NWC24CheckUserId.html"><CODE>NWC24CheckUserId</CODE></A>. 24</P> 25 26<H2>Arguments</H2> 27<TABLE border="1" cellpadding="3" cellspacing="0.1"> 28 <TR> 29 <TD width="120" bgcolor="#ffffe8"><code><em><strong>userId</strong></em></code></TD> 30 <TD width="520"> 31 User ID to be checked for validity. 32 </TD> 33 </TR> 34</TABLE> 35 36<h2>Return Values</h2> 37<P> 38 <code>NWC24_OK</code>: The user ID is valid (<code><em><strong>userId</strong></em></code> is a valid user ID and belongs to a Wii console in the same region).<BR> <code>NWC24_ERR_ID_GENERATED</code>: The <code><em><strong>userId</strong></em></code> value matches the local console's own ID.<BR> <code>NWC24_ERR_PROTECTED</code>: Even though the <code><em><strong>userId</strong></em></code> is valid, communication is not possible (this error will be returned if a retail Wii console's ID is checked on a development console).<BR> <code>NWC24_ERR_ID_CRC</code>: CRC error (CRC of the <code><em><strong>userId</strong></em></code> is wrong). <BR><code>NWC24_ERR_OTHER_REGION</code>: <code><em><strong>userId</strong></em></code> belongs to a Wii console in a different region.<BR> 39</P> 40 41<H2>See Also</H2> 42<P> 43<A HREF="NWC24CheckUserId.html"><CODE>NWC24CheckUserId</CODE></A> 44</P> 45 46<H2>Revision History</H2> 47<P> 482008/04/30 Initial version. 49</P> 50 51<hr><p>CONFIDENTIAL</p></body> 52</HTML>