USEFUL REGISTRY REFERENCES

System registry is one of the key components to configure a Compact 7 OS run-time image’s function and behavior. When a driver or application component is included in an OS design, you need to ensure the OS design includes appropriate registry entries for the component. Following are sample registry entries that can be useful for the development environment.

Registry for the FTP Server

When the FTP server component is added to the OS design, the following default entries are added to the project:

image
[HKEY_LOCAL_MACHINE\COMM\FTPD]
    "IsEnabled"=dword:0
    "UseAuthentication"=dword:1 
    "AllowAnonymous"=dword:1
    "AllowAnonymousUpload"=dword:0
    "AllowAnonymousVroots"=dword:0
    "DefaultDir"="\Temp\"
    "IdleTimeout"=dword:12c
    "DebugOutputChannels"=dword:2
    "DebugOutputMask"=dword:17
    "BaseDir"="\Windows"
    "LogSize"=dword:1000

Code snippet is from Sample_Registry.txt

The IsEnable entry is set to 0, which disables the FTP server and prevents it from running when the OS launches. With the default registry configuration, you need to manually launch the FTP server after the Compact 7 OS is launched on the target device.

To configure the FTP server to launch as part of the OS, enter the following entries to the OS design project’s OSDESIGN.REG registry file:

image
[HKEY_LOCAL_MACHINE\COMM\FTPD] ...

Get Professional Windows® Embedded Compact 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.