DWC_CheckUserData

Syntax

#include <dwc.h>

BOOL DWC_CheckUserData( const DWCUserData* userdata );

Description

The validity of user data is checked using a CRC value included in user data. Use this to check that saved user data is loaded into memory.

Before saving user data, always clear the dirty flag using the DWC_ClearDirtyFlag function and recalculate the CRC value included in user data. In addition, after loading the saved user data into memory, take care not to lose the essential meaning by calling the DWC_ClearDirtyFlag function before calling this function.

Arguments

userdata Pointer to the DWCUserData structure where user data is stored.

Return Values

TRUE Valid.
FALSE Invalid.

See Also

DWC_CreateUserData
DWC_ClearDirtyFlag

Revision History

2008/04/25 Added a note about the DWC_ClearDirtyFlag function.
2006/08/02 Added a note about checking.
2005/12/16 Revised the description of arguments.
2005/10/20 Initial version.


CONFIDENTIAL