1. Add user and password.
NTLMSetUserInfo(_T("UserName"), _T("Password"))
If it is added successfully, it will be locate at
HKEY_LOCAL_MACHINE\Comm\Security\UserAccounts\<username>
2. Add id to FTP Server User List
FTP Server User List
http://msdn.microsoft.com/en-us/library/aa923216.aspx
3. Enable FTP server parameter
[HKEY_LOCAL_MACHINE\COMM\FTPD]
"IsEnabled"=dword:1 ; enable
"UseAuthentication"=dword:1 ; password required
; "UserList"="add;semicolon;separated;list;of;users;here"
"UserList"="nucca"
"AllowAnonymous"=dword:1
"AllowAnonymousUpload"=dword:0
"AllowAnonymousVroots"=dword:0
"DefaultDir"="\\Temp\\"
; Idle time (in seconds) after which the connection is automatically closed. Default = 5 mins
"IdleTimeout"=dword:12c
;To control logging
"DebugOutputChannels"=dword:2
"DebugOutputMask"=dword:17
"BaseDir"="\\Windows"
"LogSize"=dword:1000
4. Reboot device
