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<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 8<title>DWCLoadFromServerCallback</title> 9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13<a name="dwc__datastorage_8h_1c068a1ce8c34605ee8f01518edd6b4e3"></a> 14<h1 align="left">DWCLoadFromServerCallback</h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <dwc.h></CODE><BR> 20 <BR> 21 <PRE><CODE>typedef void(*) <a href=DWCLoadFromServerCallback.html#dwc__datastorage_8h_1c068a1ce8c34605ee8f01518edd6b4e3>DWCLoadFromServerCallback</a>(BOOL success, 22 int index, 23 char *data, 24 int len, 25 void *param);</CODE></PRE></dd> 26</dl> 27 28<h2>Arguments</h2> 29 30<TABLE border="1" width="100%"> 31 <TBODY> 32 33 <TR> 34<TD width="13%"><EM><STRONG><parametername>success</parametername></STRONG></EM></TD> 35<TD width="87%">TRUE: Load succeeded.<BR>FALSE: Load failed.</TD> 36 </TR> 37 38 <TR> 39<TD width="13%"><EM><STRONG><parametername>index</parametername></STRONG></EM></TD> 40<TD width="87%">Friend roster index of the party whose data to load. Value is -1 if it is the self, or if the party ceases to be a friend before loading completes.</TD> 41 </TR> 42 43 <TR> 44<TD width="13%"><EM><STRONG><parametername>data</parametername></STRONG></EM></TD> 45<TD width="87%">Loaded data (key/value character string pair).</TD> 46 </TR> 47 48 <TR> 49<TD width="13%"><EM><STRONG><parametername>len</parametername></STRONG></EM></TD> 50<TD width="87%">Load data length</TD> 51 </TR> 52 53 <TR> 54<TD width="13%"><EM><STRONG><parametername>param</parametername></STRONG></EM></TD> 55<TD width="87%">Callback parameter.</TD> 56 </TR> 57 58 </TBODY> 59</TABLE> 60 61<h2>Return Values</h2> 62 63<p>None.</p> 64 65<H2>Description</H2> 66<p><CODE>success=FALSE</CODE> also results if the key specified by the load function does not exist or if an attempt was made to read a key saved by another player using the <CODE>DWC_SavePrivateDataAsync</CODE> function.</p><p>Do not call <A href="DWC_LogoutFromStorageServer.html"><CODE>DWC_LogoutFromStorageServer</CODE></a> from inside a callback.</p> 67 68<h2>See Also</h2> 69<p> 70 71<CODE><A href="DWC_SetStorageServerCallback.html">DWC_SetStorageServerCallback</A></CODE> 72 73</p> 74 75<H2>Revision History</H2> 76<DL> 77 78<DT><para>1.4.0</DT> 79<DD>Added the text concerning the <CODE>DWC_LogoutFromStorageServer</CODE> function.</DD> 80 81</DL> 82<hr><p>CONFIDENTIAL</p></body> 83</html> 84