File Server Registry Settings (Windows CE 5.0)
The registry stores information necessary to configure the system for applications and hardware devices. The registry also contains information that the operating system continually references during operation. The protected registry contains named values for File Server configuration.
Note The default registry values vary depending on which Catalog items are included in your OS design. For more information, see Default Registry Settings.
The settings for File Server functionality are stored in the HKEY_LOCAL_MACHINE\Services\Smbserver registry key.
Windows CE enables you to create virtual file server directories. To users who access your file server share, virtual directories appear as subdirectories of the file server share, although these directories may be located in a different folder.
You can create a virtual root directory called "SampleVirtualRoot" by specifying the following registry key: HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\SampleVRoot.
Note The maximum length of the virtual root directory is 12 characters.
The following table shows the named values for the HKEY_LOCAL_MACHINE\Services\Smbserver registry key.
Value : type | Description |
---|---|
AdapterList : REG_SZ | Provides a list of network adapters separated with a semicolon. You can also use the "*" option to specify any adapters that are present on the operating system. If you set this registry key to "localhost", the file server will listen on loopback.
|
DLL : REG_SZ | Default set to "Smbserver.dll". Specifies the name of the dynamic-link library (DLL) file to be loaded. |
Keep : REG_DWORD | Default set to 1. If this is set to zero (0), the DLL will be unloaded immediately after initialization. |
Order : REG_DWORD | Default set to 9. Specifies the order in which Device.exe will load this service. |
The following table shows the named values for the HKEY_LOCAL_MACHINE\Services\Smbserver\Shares registry key.
Value : type | Description |
---|---|
UseAuthentication : REG_DWORD | No default set. Setting this value to 0 will disable all authentication on the file server. The file server will be accessible to all users on the network.
|
The following table shows the named values that are stored under the virtual root key. An example of such a virtual root key is HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\SampleVRoot.
Value : type | Description |
---|---|
Path : REG_SZ | Specifies the path to be shared.
|
Type : REG_DWORD | Setting this value to 1 designates this as a print server share, setting this value to 0 (zero) designates this as a file server share. |
UserList : REG_SZ | Specifies a comma-separated list of allowed users. |
You can specify a list of folders that cannot be shared. You can use any name for each folder you specify in the exclusion list. Setting the HKEY_LOCAL_MACHINE\Services\Smbserver\Shares\ExcludePaths registry key prevents the configuration functions from creating the specified shares, so that they cannot be accessed by an untrusted application. The following example shows how to exclude the \Windows and \Documents and Settings directories:
[HKEY_LOCAL_MACHINE\Services\Smbserver\Shares\ExcludePaths]"Windows"="\\Windows""My Documents"="\\Documents and Settings"
For more information about the ExcludePaths registry key, see File Server Security.
See Also
File Server Security | Print Server Registry Settings
Send Feedback on this topic to the authors