title: FTP Implementation with User Accounts (User Creation) in Wince
body: <p>OS: WinCE 6.0 R3
  Platform Builder: PB6</p>
  
  <p>I am trying to create user for FTP in wince. I am using <code>NTLMSetUserInfo()</code> for creating user.</p>
  
  <p>It creates USER entry in registry. But when trying to login using that user and password it is not allowing to login.. BAD USER and PASSWORD.</p>
  
  <p>My Registry Settings are:</p>
  
  <pre><code>[HKEY_LOCAL_MACHINE\Ident]
  "OrigName"="Kunu"
  "Name"="My Device"
  "Desc"=LOC_DEFAULTDEVICEDESC
  
  
  [HKEY_LOCAL_MACHINE\COMM\FTPD]
  "IsEnabled"=dword:1
  "UseAuthentication"=dword:1
  "UserList"="krunal"
  "AllowAnonymous"=dword:0
  "AllowAnonymousUpload"=dword:0
  "AllowAnonymousVroots"=dword:0
  "DefaultDir"="\\Windows"
  ; 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"="\\"
  "LogSize"=dword:1000
  
  [HKEY_LOCAL_MACHINE\Services\Smbserver]
  "AdapterList"="*"
  [HKEY_LOCAL_MACHINE\Services\Smbserver\Shares\Root]
  "Path"="\\temp"
  "Type"=dword:0
  "UserList"="admin"
  
  
  
  [HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\VirtualRoot]
      "Type"=dword:0
      "Path"="\\Windows"
      "UserList"="krunal"
  
  [HKEY_LOCAL_MACHINE\Drivers\Service\SMBServer]
       "AdapterList"="*"
  
  [HKEY_LOCAL_MACHINE\Comm\Redir]
  "DefaultDomain"=""
  
  [HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
       "UseAuthentication"=dword:1
  </code></pre>
  
  <p>Registry Entry after <code>NTLMSetUserInfo()</code></p>
  
  <pre><code>HKEY_LOCAL_MACHINE\Comm\Security\UserAccounts\Mike
  </code></pre>
  
  <p>Under that i am giving Home and Permissions Registry values for access.</p>
  
  <p>still its not working..</p>
  
  <p>I even use API <code>AuthHelpInitialize()</code> and <code>AuthHelpValidateUserW()</code> to verify the user.</p>
  
  <p>It Returns user not present its failing.. </p>
  
  <p>How i can create user and give specific directory access to them...???</p>
  
  <p>Thanks in Advance,
  Krunal Soni.</p>