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

文章標籤
全站熱搜
創作者介紹
創作者 ethanchen1108 的頭像
ethanchen1108

Windows Embedded

ethanchen1108 發表在 痞客邦 留言(0) 人氣(0)