IRAPIDesktop

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This interface is used by desktop applications to find connected Windows Embedded CE–based remote devices in order to make Remote API 2 method calls. Applications will create an instance of this interface by calling COM's CoCreateInstanceEx method. Once the instance has been obtained, the EnumDevices and FindDevice methods of the interface can be used to obtain a reference to a IRAPIDevice interface that represents a connected device.

The Advise and UnAdvise methods allow desktop applications to be registered with the connection manager and be alerted when devices connect and disconnect. To use this functionality, applications must implement the IRAPISink interface.

The following table shows the methods for this interface in alphabetical order. Like all COM interfaces, this interface inherits the methods for the IUnknown interface.

Method Description

Advise

Registers an IRAPISink object to receive connection events.

EnumDevices

Returns an IRAPIEnumDevices object that can be used to enumerate connected remote devices.

FindDevice

Returns an IRAPIDevice object representing a connected remote device.

UnAdvise

Removes the registration of an IRAPISink object so that it will no longer receive connection events.

Headerrapi2.h
Libraryole32.lib, rapiuuid.lib
Windows Embedded CEWindows Embedded CE 6.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: