Partager via


IRAPIDesktop

A version of this page is also available for

Windows Embedded CE 6.0 R3

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.

Methods

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.

Requirements

Header rapi2.h
Library ole32.lib, rapiuuid.lib
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

RAPI2 Interfaces
IRAPIDevice
IRAPIEnumDevices
IRAPISink