Поделиться через


Platform Builder Sample Code (Windows Embedded CE 6.0)

1/5/2010

Platform Builder includes source code samples in the OS design and OS directories that you can use for a variety of purposes.

Sample code is provided for several types of applications, and includes the following:

  • Run-time and binary files
  • Kernel and storage code
  • Wireless network drivers
  • SOAP and uPNP protocol implementations
  • Source code for Windows Embedded CE-based design templates

Note

In many cases, sample code is only a starting point for development. That is, some sample code is complete and ready to build, debug, and test in your OS design; however, some samples are supplied as reference only and are incomplete.

Note

Sample code has not been tested and is not intended for production use.

Sample Code Locations

Platform Builder includes sample code in each of the following directories:

  • %_WINCEROOT%\Others
  • %_WINCEROOT%\Public
  • %_WINCEROOT%\Private

Platform Builder includes several sample design templates, including the following:

  • A sample design template for network devices that connect to the Internet with a dial-up or broadband connection, called Gateway. Sample source code, including HTML files, for the gateway design is in the %_WINCEROOT%\Public\Servers\Oak\Gateway directory. For more information, see Developing a Gateway.
  • A sample Internet telephony design, called voice over IP (VoIP). Sample source code for the VoIP design is in the %_WINCEROOT%\Public\DirectX\Oak\VOIP directory. For more information, see Developing an IP Phone.

Platform Builder also includes sample code for drivers and files:

  • Sample code files for several drivers are in %_WINCEROOT%\Public\Common\Oak\Drivers\. The sample code in this directory is intended to be copied to your target configuration for further development.

  • Sample code for a variety of SOC (system-on-chip) drivers is in %_WINCEROOT%\Platform\Common\Src\SOC.

    Note

    The SOC directory is new for Windows Embedded CE 6.0. The contents of the Windows CE 5.0 CSP directory has been restructured and migrated to the SOC directory.

    Additional driver samples can be found in the %_WINCEROOT%\Platform directory. For more information about driver source code, see Device Driver Source Code.

  • Sample code for a variety of applications is also available. For example, sample source for Bluetooth is available in the %_WINCEROOT%\Public\Common\Oak\Drivers\Bluetooth\Sample directory. For more information, see Bluetooth Application Development.

For more information about directories and their contents, see Run-time Image and OS Directories.

Design Template Files

Sample directories contain source code files to help build the sample source code for your OS design. The Platform Builder Build tool (Build.exe) uses these files to define the following:

  • The location of source code files
  • Which files to compile
  • What kind of binary file to build
  • In which directories the source code should be built.

For example, when Build.exe runs, it searches first for the dirs file, which defines the locations for the source code to be built. Build.exe then searches for directories that contain a sources file. Sources files contain a list of source files to compile and the type of executable file to build. For more information, see Sources File and Dirs File.

See Also

Other Resources

Samples
Source Code Control
Registry File
OS Design Configuration Files
Build Tool
Run-Time Image and OS Directories