Platform Builder Sample Code

Platform Builder includes source code samples in the platform and operating system (OS) directories that you can use for a variety of purposes.

Sample code is provided for several types of applications, and includes run-time and binary files, kernel and storage code, wireless network drivers, SOAP and uPNP protocol implementations, and source code for Windows CE-based configurations.

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

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

Sample Code Locations

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

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

Platform Builder includes several sample configurations, including a sample network connection-sharing configuration, called Gateway, and a sample Internet telephony configuration, called voice over IP (VoIP). Sample source code, including HTML files, for the gateway configuration is located in the %_WINCEROOT%\Public\Servers\Oak\Gateway directory. For more information, see Gateway Configuration. Sample source code for the VoIP configuration is located in the %_WINCEROOT%\Public\DirectX\Oak\VOIP directory. For more information, see IP Phone Configuration.

Sample code files for several drivers are located in %_WINCEROOT%\Public\Common\Oak\Drivers\. The sample code in this directory is intended to be copied to your platform for further development. Sample code for a variety of CSP drivers is located in %_WINCEROOT%\Public\Common\Oak\CSP. Additional driver samples can be found in the %_WINCEROOT%\Platform directory. For more information about driver source code, see Driver Development.

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

For more information about directories and their contents, see Platform and OS Directories.

Platform Configuration Files

Sample directories contain source code configuration files to help build the sample source code for your project. 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

Platform Development How-to Topics | Source Code Control | Registry File | Platform Configuration Files | Platform Development | Build Tool | Platform and OS Directories

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.