Partager via


ICcBootstrap (Compact 2013)

3/26/2014

Deprecated.

All connectivity bootstrap services implement the core bootstrap interface, ICcBootstrap. This interface provides functionality to bootstrap a device with a run-time image, or with applications.

ICcBootstrap supports following functionality:

  • Flashing a device with a run-time image
  • Downloading applications to a flashed device
  • Launching applications on a CE device
  • Getting basic device information such as OS version, processor information, and so on.

The following steps show a typical process for using a download service. This process assumes that the client has implemented the ICcService interface through the service host, or that the client created an instance of the service directly with COM.

  1. Initialize the associated device ID with ICcService::Initialize
    This initializes the target device ID associated with the service. The download service uses the device ID to query for properties from the datastore.
  2. Establish a connection between the desktop and the device with ICcService::Connect
    This establishes a connection between the desktop download service and a device. For example, if you use the Ethernet Kernel Download service, calling ICcService::Connect ensures that the service has the device IP address.
  3. Call IUnknown::QueryInterface for an ICcBootstrap object.
  4. When the connection is active, call ICcBootStrap::Download to download requested files to the device
    This downloads the requested files to a device. You can repeat step 4 an unlimited number of times.
  5. Call ICcBootStrap::Launch to start an application or start up a run-time image.
  6. Call ICcService::UnlockService.
    This releases the service interface. If there are no other references to this service, the service object is deleted and subsequent calls to ICcSvcHost::GetService create new instances of this service.

You can also load a download service directly using the COM activation call CoCreateInstance, or instantiate a kernel download service that uses ICcSvcHost::GetService.

If you instantiate a download service by using ICcSvcHost, the download service remains loaded in the service host process until the lock count for the service is larger than 0. The lock count is controlled through ICcService::LockService and ICcService::UnlockService.

If you start a download service directly using a COM call, the service remains in the client process space until the reference count for the object equals 0.

Note

Implementing ICcService requires bootstrap services.

Methods

The following tables show the methods for this interface. The interface inherits the methods for the IUnknown andIDispatch.

The following table shows the methods for the IDispatch interface.

Method

Description

IDispatch::GetIDsOfNames

Deprecated.

Maps a single member name and an optional set of parameter names to a corresponding set of integer dispatch identifiers (DISPIDs).

These identifiers can then be used on subsequent calls to IDispatch::Invoke.

IDispatch::GetTypeInfo

Deprecated.

Retrieves the type information for an object.

IDispatch::GetTypeInfoCount

Deprecated.

Retrieves the number of type information interfaces provided by an object, either zero (0) or 1.

IDispatch::Invoke

Provides access to properties and methods exposed by an object.

The following table shows the methods for the ICcBootstrap interface.

Method

Description

ICcBootstrap::Download

Deprecated.

Starts a download of a file from the host to the device.

ICcBootstrap::GetDeviceInfo

Deprecated.

Queries a device for resource information and returns the information to the caller.

ICcBootstrap::GetFile

Deprecated.

Copies the specified file from the device to the desktop.

ICcBootstrap::GetFileInfo

Deprecated.

Gets information about a file on the device.

ICcBootstrap::Launch

Deprecated.

Launches an application that uses command line arguments on the remote device.

Enumerations

The following table shows the enumerations for the ICcBootstrap interface.

Programming element

Description

ICcBootstrap::DeviceInfo

Deprecated.

Lists possible names for device information properties.

Requirements

Header

ccbootstrap.idl

See Also

Reference

Core Connectivity Interfaces