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 http-equiv="Content-Style-Type" content="text/css">
7<title>Console Friend Link Feature - Constants</title>
8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
9</head>
10
11<body>
12
13<h1 align="left">Console Friend Link Feature - Constants</h1>
14<H2>Definition</H2>
15<DL>
16	<DD>
17		<PRE><CODE>
18#include &lt;dwc.h&gt;
19
20
21enum DWCCfError {
22    DWC_CF_ERROR_NONE
23    DWC_CF_ERROR_NOFRIENDDATA
24    DWC_CF_ERROR_CRC
25    DWC_CF_ERROR_PARAM
26    DWC_CF_ERROR_DATA_BROKEN
27    DWC_CF_ERROR_MSGOBJ_ALREADY_SET
28    DWC_CF_ERROR_MSGOBJ_PROTECTED
29    DWC_CF_ERROR_MSGOBJ_FULL
30    DWC_CF_ERROR_NWC24_INTERNAL
31    DWC_CF_ERROR_USERDATA
32    DWC_CF_ERROR_MEMORY
33    DWC_CF_ERROR_GETINFO
34    DWC_CF_ERROR_MAX
35};
36
37enum DWCCfMsgType {
38    DWC_CF_MSG_TYPE_REQUEST
39    DWC_CF_MSG_TYPE_RESPONSE_ACCEPT
40    DWC_CF_MSG_TYPE_RESPONSE_DENY
41    DWC_CF_MSG_TYPE_REQUEST_REMIND
42};
43
44		</CODE></PRE>
45	</DD>
46</DL>
47
48<TABLE border="1">
49	<TBODY>
50
51	</TBODY>
52</TABLE>
53
54<a name="dwc__cfriend_8h_1ccfc9575a5d094b20e4b1227b599a8d5"></a>
55<H2><A name="TAG_ENUM_1">Error Codes for Console Friend Library</A></H2>
56<TABLE border="1">
57	<TBODY>
58
59	<TR>
60	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_NONE</CODE></STRONG></EM></TD>
61	  <TD>Succeeded.</TD>
62	</TR>
63
64	<TR>
65	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_NOFRIENDDATA</CODE></STRONG></EM></TD>
66	  <TD>No friend data is attached to the specified message.</TD>
67	</TR>
68
69	<TR>
70	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_CRC</CODE></STRONG></EM></TD>
71	  <TD>The friend code CRC is abnormal.</TD>
72	</TR>
73
74	<TR>
75	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_PARAM</CODE></STRONG></EM></TD>
76	  <TD>Illegal parameter.</TD>
77	</TR>
78
79	<TR>
80	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_DATA_BROKEN</CODE></STRONG></EM></TD>
81	  <TD>The game friend information is corrupted.</TD>
82	</TR>
83
84	<TR>
85	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_MSGOBJ_ALREADY_SET</CODE></STRONG></EM></TD>
86	  <TD>Friend registration information is already appended to <CODE>NWC24MsgObj</CODE>.</TD>
87	</TR>
88
89	<TR>
90	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_MSGOBJ_PROTECTED</CODE></STRONG></EM></TD>
91	  <TD><CODE>NWC24MsgObj</CODE> cannot be changed.</TD>
92	</TR>
93
94	<TR>
95	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_MSGOBJ_FULL</CODE></STRONG></EM></TD>
96	  <TD>The limit for appending binary data to <CODE>NWC24MsgObj</CODE> has been reached.</TD>
97	</TR>
98
99	<TR>
100	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_NWC24_INTERNAL</CODE></STRONG></EM></TD>
101	  <TD>An <CODE>NWC24</CODE> function internal error.</TD>
102	</TR>
103
104	<TR>
105	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_USERDATA</CODE></STRONG></EM></TD>
106	  <TD>Creation of the friend code from user data has failed.</TD>
107	</TR>
108
109	<TR>
110	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_MEMORY</CODE></STRONG></EM></TD>
111	  <TD>Insufficient memory.</TD>
112	</TR>
113
114	<TR>
115	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_GETINFO</CODE></STRONG></EM></TD>
116	  <TD>Failed to obtain friend's console information.</TD>
117	</TR>
118
119	<TR>
120	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_ERROR_MAX</CODE></STRONG></EM></TD>
121	  <TD></TD>
122	</TR>
123
124	</TBODY>
125</TABLE>
126
127<a name="dwc__cfriend_8h_161bb5550c8362a5fc91a659a8ea1d971"></a>
128<H2><A name="TAG_ENUM_2">Types of Messages Sent</A></H2>
129<TABLE border="1">
130	<TBODY>
131
132	<TR>
133	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_MSG_TYPE_REQUEST</CODE></STRONG></EM></TD>
134	  <TD>Friend registration request.</TD>
135	</TR>
136
137	<TR>
138	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_MSG_TYPE_RESPONSE_ACCEPT</CODE></STRONG></EM></TD>
139	  <TD>Response granting a friend registration request.</TD>
140	</TR>
141
142	<TR>
143	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_MSG_TYPE_RESPONSE_DENY</CODE></STRONG></EM></TD>
144	  <TD>Response denying a friend registration request.</TD>
145	</TR>
146
147	<TR>
148	  <TD width="25%"><EM><STRONG><CODE>DWC_CF_MSG_TYPE_REQUEST_REMIND</CODE></STRONG></EM></TD>
149	  <TD>A request to remind the user about a friend registration request.<br>In the current version, this is the same as <CODE><a href=Macro.html#dwc__cfriend_8h_161bb5550c8362a5fc91a659a8ea1d9713e99352833153b2b4f0c8e2a14e80bc4>DWC_CF_MSG_TYPE_REQUEST</a></CODE>.</TD>
150	</TR>
151
152	</TBODY>
153</TABLE>
154
155<hr><p>CONFIDENTIAL</p></body>
156</html>
157