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>NWC24UpdateFriendInfo</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8</HEAD> 9<BODY> 10<H1>NWC24UpdateFriendInfo</H1> 11 12<H2>C Specification</H2> 13<DL> 14<DD><PRE><CODE>#include <revolution/nwc24.h></CODE></PRE> 15<DD><PRE><CODE><A HREF="../Types/NWC24Err.html">NWC24Err</A> NWC24UpdateFriendInfo( const <A HREF="../Types/NWC24FriendInfo.html">NWC24FriendInfo</A>* <EM>info</EM>, u32 <EM>index</EM> );</CODE></PRE> 16</DL> 17 18<H2>Description</H2> 19<P> 20Updates the information within the console friend roster at the <code><em><strong>index</strong></em></code> position.<BR>ID and status information remain as is. Only some of the information, including the name, is updated. As a result, if an ID that differs from the stored ID is specified, an error will occur. 21</P> 22<P> 23<B>Note: </B>This function is released for testing during development. Unless you have a special reason, do not incorporate this function into the production version of your application. 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>info</strong></em></code></TD> 30 <TD width="520"> 31The <A HREF="../Types/NWC24FriendInfo.html">NWC24FriendInfo structure</A> that holds the information to be updated. (Must be 32-byte aligned.) 32 </TD> 33 </TR> 34 <TR> 35<TD width="120" bgcolor="#ffffe8"><code><em><strong>index</strong></em></code></TD> 36 <TD width="520"> 37The index within the friend roster. 38 </TD> 39 </TR> 40</TABLE> 41 42<h2>Return Values</h2> 43<P> 44<code>NWC24_OK</code>: Updated normally.<BR><code>NWC24_ERR_NULL</code>: Data not registered in the specified index location.<BR><code>NWC24_ERR_PROTECTED</code>: Address information located in the specified index location does not match that given by <code><em><strong>info</strong></em></code>.<BR><code>NWC24_ERR_ALIGNMENT</code>: The <code><em><strong>info</strong></em></code> argument is not 32-byte aligned.<BR><code>NWC24_ERR_INVALID_VALUE</code>: The value of <code><em><strong>index</strong></em></code> or <code><em><strong>info</strong></em></code> is invalid.<BR><code>NWC24_ERR_LIB_NOT_OPENED</code>: Library not open.<BR> <code>NWC24_ERR_FILE_*</code>: File access error.<BR><code>NWC24_ERR_BROKEN</code>: Friend roster broken.<BR><code>NWC24_ERR_VER_MISMATCH</code>: Friend roster version error.<BR> 45</P> 46 47<H2>See Also</H2> 48<P> 49<A href="NWC24ReadFriendInfo.html"><CODE>NWC24ReadFriendInfo</CODE></A>, <A href="NWC24WriteFriendInfo.html"><CODE>NWC24WriteFriendInfo</CODE></A>, <A href="NWC24DeleteFriendInfo.html"><CODE>NWC24DeleteFriendInfo</CODE></A>, <A href="NWC24SearchFriendInfoById.html"><CODE>NWC24SearchFriendInfoById</CODE></A>, <A href="NWC24IsFriendInfoThere.html"><CODE>NWC24IsFriendInfoThere</CODE></A> 50</P> 51 52<H2>Revision History</H2> 53<P> 542007/04/04 Added a note of caution about using this function in the production version.<BR> 2007/02/23 Corrected errors.<BR> 2006/10/06 Updated the list of return values.<BR> 2006/09/01 Initial version. 55</P> 56 57<hr><p>CONFIDENTIAL</p></body> 58</HTML>