Partager via


Network UI Sample Application Connmc (Compact 2013)

0/26/2015

This sample shows you how Connmc configures dial-up, VPN, LAN, and other network connection types by implementing the LAN adapter configuration property sheets.

The source code is located in %_WINCEROOT%\Public\Common\Oak\Drivers\Netsamp\Connmc.

Prerequisites

  • Windows Embedded Compact 2013
  • Microsoft Visual Studio 2013 or Microsoft Visual Studio 2015
  • At least one wired or wireless network controller with the proper NDIS miniport driver

Using the Sample

To build and run the sample using an in-proc server

  1. Create an OS design in Platform Builder.

  2. Include the Network User Interface catalog item (SYSGEN_CONNMC) in the OS design.

    For more information, see Network User Interface Catalog Items and Sysgen Variables.

  3. Build the OS design into a run-time image.

  4. Download the run-time image onto the device.

How the Sample Works

Connmc implements the Network and Dial-up Connections application. You can use this sample application to configure dial-up, VPN, LAN, and other network connection types. It implements the LAN adapter configuration property sheets. For adapters that support the 802.11-specific object identifiers (OIDs), a wireless tab appears to configure 802.11 parameters and 802.1x authentication.

Connmc interacts with the automatic configuration subsystem, and uses the wlanapi interface to retrieve and set 802.11 parameters, such as the preferred Service Set Identifier (SSID) list.

It loads a wrapper into the user process to communicate with the LAN driver. The wlanapi interface is exposed in the header file wlanapi.h.

NetUI exports three Connmc functions: AdapterIPProperties, contained in Network.cpp, and RasEapInvokeConfigUI and RasEapFreeMemory, both contained in Rasconninfo.cpp. A sample of the functions and their return values are contained in the %_WINCEROOT%\Public\Common\Oak\Drivers\Netsamp\Connmc directory.

See Also

Tasks

Network UI Sample Application Ethman
Network UI Sample Application Rnaapp

Other Resources

Network User Interface