After using the USB synchronization function for a period of time, the wince system fails to synchronize data. A dialog box is displayed:
The content of the dialog box is "The ActiveSync version on your device cannot be verified.Program(For example, firewall) is preventing the use of the ActiveSync port to connect to the device, or you may need to upgrade to the PC to teach the new version of ActiveSync. "This problem has been encountered by many friends who use the wince system, currently, you can only find a solution to the problem:
1. Processing in the oeminit Function
When this problem occurs, you can perform the following operations to Solve the Problem upon restart, but this action is equivalent to replying to the factory settings.
// Check clean boot flag in BSP ARGs Area
//
{
// This is the global shared ARGs flag
Bool * bcleanbootflag = (bool *) oalargsquery (bsp_args_query_cleanboot );
If (* bcleanbootflag)
{
Oalmsg (1, (text ("OEM: force clean boot. \ r \ n ")));
// Clear the flag so that we don't get here in the next boot unless itis set again.
* Bcleanbootflag = false;
// Tell filesys.exe that we want a clean boot.
Nkforcecleanboot ();
// Also set the hive and storage clean flags if not already set
{
Bool * bhivecleanflag = (bool *) oalargsquery (bsp_args_query_hiveclean );
Bool * bformatpartflag = (bool *) oalargsquery (bsp_args_query_formatpart );
* Bhivecleanflag = true;
* Bformatpartflag = true;
}
}
}
2. delete default. Vol
Handle hpartition;
Hpartition = openpartition (openstore (_ T ("dsk2:"), _ T ("part00 "));
Dismountpartition (hpartition );
Mountpartition (hpartition );
If (deletefile (_ T ("\ sysdisk \ documentsand Settings \ default. Vol") = false)
{
MessageBox (_ T ("repairfail "));
}
Else
{
MessageBox (_ T ("repairsuccess "));
}
Closehandle (hpartition );
\ Documents and Settings \ default. the VOL file will become larger and larger. If the file cannot be synchronized normally, it is default. the VOL file has been changed abnormally. You need to delete the file value and then perform cold start. During Cold start, the system function will automatically generate a new (that is, after the system is refreshed) default. vol to solve this problem.
However, after a period of time, the problem may be reproduced. In this case, you only need to perform the same repair. Of course, the best way is to fundamentally eliminate this problem. If you know it, I 'd like to share it with you.