Sharing Folders Using the File Server (Windows CE 5.0)
To share folders on the device using SMB, you must configure the registry. To make a persistent change to your run-time image, you must modify the Project.reg file.
For more information about the registry keys used in the following procedure, see File Server Registry Settings.
To configure the registry settings for the SMB server
Define a unique name for the Windows CE-based device in the registry as follows:
[HKEY_LOCAL_MACHINE\Ident] ; "Name"=LOC_DEFAULTDEVICENAME "Desc"=LOC_DEFAULTDEVICEDESC "OrigName"="WinCEDevice" "Name"="JimDaly_Device"
The device must be identified by using a unique name. If the name of the device is not unique, the SMB server detects the default name and shuts down to avoid duplicate servers.
Set the path of the folder to share and provide names of allowed user, by setting the following registry entries.
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\VirtualRoot] "Type"=dword:0 "Path"="\\Windows" "UserList"="jimdaly"
Define the network adapter to bind in the registry as follows:
[HKEY_LOCAL_MACHINE\Drivers\Service\SMBServer] "AdapterList"="PCI\\NE20001"
If NTLMSSP is used to authenticate user access, Set the default domain.
[HKEY_LOCAL_MACHINE\Comm\Redir] "DefaultDomain"="REDMOND"
Configure the SMB server to be secure by enabling authentication.
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares] "UseAuthentication"=dword:1
Security Note It is recommended that UseAuthentication is not set to 0 because this will disable all authentication on the SMB server.
See Also
How to Configure a File Server
Send Feedback on this topic to the authors