/************************************************
/* 2006.01.15, MeijiChang	Ver. 3.0.0
/************************************************
1. Add more localization - Korea, Russian, Italian, Spanish, French and Germany
2. Add auto-skip error when copy feature.
3. Add auto-shutdown after backup feature.
4. Change the "EXIT" behavior, now exit will confirm if exit.
5. Add feature to allow user to change the auto-load at startup option.
6. Change copy behavior, show progress when copying.
7. Synchronize file time & folder time as the source. (not work with NAS)
8. Add message on connect dialog to notify user to create account on NAS.
9. For Win9x, show dialog to ask Windows logon for proper NAS connection.
10. Fix error when renaming existing file on the NAS.



/************************************************
/* 2005.11.21, MeijiChang	Ver. 2.1.1
/************************************************
1. Fix started with schedule function and GPF problem in XP & 2000.
2. Add Taskbar Icon Animation for all backup & retsore operation.  Show detailed tooltip when backing up files.
3. Enhance backup cancel function.  Backup can be cancelled during copy large files.
4. Enhance copy file exception operation. User will be prompted for abort, retry or skip.  
    And if skip, user will be asked if he want to skip all the errors for this job.
5. Fix bug that cannot click "Set Default" button when monitoring.
6. Fix bug that system may hang when stop monitoring while replicating large file to NAS.
7. Fix the problem that schdule won't work if reboot or restart NetBak.
8. Fix the incomplete file removal of NetBak.exe after uninstallation in Windows 98/ME.
9. Fix the overwrite setup problem in Windows 98/ME.  If NetBak is running and install, the NetBak.exe will not be upgraded under Windows 98/ME.  
10. Fix "connection broken & reconnect" message under Windows 98/ME.
11. Fix manually backup specific directory and cause GPF problem under Windows 98/ME. 
12. Better handling for credential conflict issue when connecting.
13. Fix the problem that new user name & password cannot be updated when initial connect failed by wrong user name. 
14. Add "debug" flag in registry settings for diagnostic purpose.
15. When PC start, change the connection try times & delay by type of the error. For example, 
      if the error is password error, will not retry; if the error is network not ready, will try 5 times every 10 seconds.
      If monitoring mode is set to default mode, then it will try to re-connect to NAS before user open NetBak Replicator.
      The connect-retry will be scheduled at 1 minutes later for first time, then each 5 minutes if still not connected.


/************************************************
/* 2005.10.18, MeijiChang	Ver. 2.1.0.1018
/************************************************
1. Add unicode features, be able to handle Unicode folder, file & share.
2. Limit log size to 1000, avoid resource not enough problem
3. Fix file or folder unable to delete problem when Monitoring
4. Fix backup NG on moving folder (within same drive) problem when monitoring
5. Fix some strange issue for monitoring drive roor folders & files.
6. Modify Japanese U/I message
7. When monitoring folder, try move, remove and move the same folder again.  
   Folder will be rejected to be deleted.
8. Change the display of file size in the file selection list.
9. Fix ASSERT problem when running under Windows 98 with debug version of system DLLs.
10. Fix problem for start at monitoring mode without NAS connected.
11. Improve the authentication procedure, extra password verify dialog will not appear.
12. Change the program menu item from "Disk On-line Server Software" to "QNAP Storage Software" for setup.
13. Remove log file directory when uninstall.
14. Change the tray icon behavior to always-on.
15. Update setup/uninstall program, add complete multi-lingual message.


/************************************************
/* 2005.05.26, JohnsonCheng
/************************************************
1. Fixed PTR: 05823, 05824
2. Add log type in log file for "Save As..."



/************************************************
/* 2005.05.24, JohnsonCheng
/************************************************
1. Fixed PTR05732. This is big file issue, but macro issue. This bug happens because Excel can't remove 
the temporary file while we still open it with SHARE_WRITE mode.
2. Delay 2 seconds instead of 1 second while retry with ERROR_SHARING_VIOLATION.
3. Move two variables, dwPreAction and strOldFileName, into member variables of CDirectoryMonitor class.
4. New "Save As.." button in LogPage.
5. Fixed memory leak issue while opening log file at the beginning.


/************************************************
/* 2005.04.04, JohnsonCheng
/************************************************
1. Fixed a monitor issue with Err Code is 5.
   Description:
	When monitoring a folder, then copy a file to it's secondly sub-folder, occurs a copy directory failed log with Err Code is 5.
   Solution:
	Add IsFile checking in IsMonitorFile function.


/************************************************
/* 2005.03.25, JohnsonCheng
/************************************************
1. Patch Excel issue
   When edit a monitoring Excel file, occurs ErrCode 2 & 32.
2. Fixed a ERROR_SHARING_VIOLATION issue for monitor
   Description:
	Open a monitoring Excel file, edit then save it. It sometimes occurs file share violation.
   Solution:
	Use file read/write mechanism instead of CopyFile(), If sharing violation on copying, waiting 1 sec before retry copy. 
3. New logs for monitor
   - Create directory ...
   - Rename directory ...
   - Rename file ...
4. Drop duplicate file action to improve performance while monitoring 


/************************************************
/* 2005.02.24, JohnsonCheng
/************************************************
1. Fixed PTR 04882
2. Fixed a application failed when copying only a "testF.doc" file with one of filters is *F.* 

/************************************************
/* 2005.02.01, JohnsonCheng
/************************************************
1. Replace error log "Open log file failed !" with "Open log file failed!".
2. Replace "Copyright(C) 2004 ..." with "Copyright(C) 2004-2005 ..."

/************************************************
/* 2005.01.27, JohnsonCheng
/************************************************
Description:
   For PTR 05002, it still doesn't work on Win2000 with Japanese.
Solution:
   If no IP are found at first time, sleep 500 millisecond before second browsing.

/************************************************
/* 2005.01.26, JohnsonCheng
/************************************************
1. Fixed PTR: 05078, 05069, 05266, 05270, 05271

/************************************************
/* 2005.01.24, JohnsonCheng
/************************************************
Fixed a authentication bug found by Kent. This bug is a side-effect from PTR 04828
Description:
   On Win2000, the authetication dialog will display early than NetBak if the password is not correct.
Solution:
   During init replicatior dialog, enumerate the share folders after auto authetication.

/************************************************
/* 2005.01.21, JohnsonCheng
/************************************************
1. Fixed PTR: 04852, 05028, 05074
2. New a string for backup schedule, if no directories selected while backup schedule is starting.
   "No directories selected while backup schedule is starting."
3. Fixed system stray animation when backup schdule is starting with no directories or files selected.
ps: PTR 05074 maybe was fixed before 2005/10/10.

/************************************************
/* 2005.01.18, JohnsonCheng
/************************************************
1. Fixed PTR: 05087
2. Add error log while creating directory failed.
3. Rewrite MyCreateDirectory() to support max full-path to 247 characters.

/************************************************
/* 2005.01.14, JohnsonCheng
/************************************************
1. Fixed PTR: 05002

/************************************************
/* 2005.01.13, JohnsonCheng
/************************************************
1. Fixed PTR: 04819, 04828, 04844, 04846, 05069, 05078, 05092, 05157
2. Add Error Code for error log wilie deleting file failed.
3. Modify log format for error log while removing directory failed.

/************************************************
/* 2005.01.10, JohnsonCheng
/************************************************
1. Fixed PTR: 04969, 05080, 05106, 05118, 05144
2. Inverse log sorting. The latest one is on the top, and the oldest is on the bottom.


/************************************************
/* 2005.01.08, JohnsonCheng
/************************************************
1. Fixed PTR: 04832, 05019, 05048, 05081
2. Keep log type in log file, and adjust log position in log file for clean reading.


/************************************************
/* 2005.01.07, JohnsonCheng
/************************************************
1. Fixed PTR: 04855, 04867, 04884, 04969, 04970, 05077
2. Add error code for error log while copy failed.


/************************************************
/* 2005.01.06, JohnsonCheng
/************************************************
Fixed PTR: 04822, 05009, 05010, 05066, 05088, 05094, 05095


/************************************************
/* 2005.01.05, JohnsonCheng
/************************************************
Fixed PTR: 05005, 05013, 05018, 05020, 05022, 05026