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>DWC_CheckUserData</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__account_8h_177fba84090f85430e580a067eedb7ebb"></a>
14<h1 align="left">DWC_CheckUserData</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE>BOOL <a href=DWC_CheckUserData.html#dwc__account_8h_177fba84090f85430e580a067eedb7ebb>DWC_CheckUserData</a>(const DWCUserData *userdata);</CODE></PRE></dd>
22</dl>
23
24<h2>Arguments</h2>
25
26<TABLE border="1" width="100%">
27  <TBODY>
28
29    <TR>
30<TD width="13%"><EM><STRONG>userdata</STRONG></EM></TD>
31<TD width="87%">Pointer to the <CODE>DWCUserData</CODE> structure where the user data is stored.</TD>
32    </TR>
33
34  </TBODY>
35</TABLE>
36
37<h2>Return Values</h2>
38
39<TABLE border="1" width="100%">
40  <TBODY>
41
42    <TR>
43<TD width="13%"><EM><STRONG>TRUE</STRONG></EM></TD>
44<TD width="87%">Valid.</TD>
45    </TR>
46
47    <TR>
48<TD width="13%"><EM><STRONG>FALSE</STRONG></EM></TD>
49<TD width="87%">Invalid.</TD>
50    </TR>
51
52  </TBODY>
53</TABLE>
54
55<H2>Description</H2>
56<p>Uses the CRC value included in the data to check the validity of user data. Use this to confirm that saved user data is loaded into memory.</p><p>Before saving user data, always use the <a href=DWC_ClearDirtyFlag.html#dwc__account_8h_139e8c6d2907d4ead951182b2a3e38713><CODE>DWC_ClearDirtyFlag</CODE></a> function to clear the dirty flag and recalculate the CRC value included in the data. Also, note that if <a href=DWC_ClearDirtyFlag.html#dwc__account_8h_139e8c6d2907d4ead951182b2a3e38713><CODE>DWC_ClearDirtyFlag</CODE></a> is called before this function after saved user data has been loaded into memory, this function will lose its original meaning.</p>
57
58<H2>Revision History</H2>
59<DL>
60
61<DT><para>1.4.20</DT>
62<DD>Added a precaution about the <CODE>DWC_ClearDirtyFlag</CODE> function.</DD>
63
64</DL>
65<hr><p>CONFIDENTIAL</p></body>
66</html>
67