Set the FTP User Password in WINCE
Enable FTP in WINCE, add FTP components, and add the following content to the Registry Platform. reg:
[HKEY_LOCAL_MACHINE \ Comm \ FTPD]
"IsEnabled" = dword: 1' enable FTP
"UseAuthentication" = dword: 1
"AllowAnonymous" = dword: 1' Anonymous Access Allowed
"AllowAnonymousUpload" = dword: 1
"AllowAnonymousVroots" = dword: 1
"DefaultDir" = "\" 'default directory
Compile and burn NK on the board to allow FTP access.
If you want to access FTP using the user password, you still need two steps.
1. Use NTLMSetUserInfo to set the user name and password of the system. This function can dynamically maintain various users and passwords of the system;
The NTLMSetUserInfo function is in ntlmssp. dll.
The function prototype is BOOL NTLMSetUserInfo (LPTSTR pszUser, LPTSTR pszPassword );
You can use BOOL NTLMDeleteUser (LPTSTR pszUser) to delete a specified user.
2. Add the set user name to the FTP UserList, and FTP will have the user name and password;
[HKEY_LOCAL_MACHINE \ Comm \ FTPD]
"UserList" = "admin"
If multiple users are added, separate them.