Export (0) Print
Expand All

IRAPIDesktop:IUnknown

Send Feedback

This interface is used by desktop applications to find connected Microsoft® Windows® 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

OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib.

See Also

Remote API 2 Interfaces | IRAPIDevice:IUnknown | IRAPIEnumDevices:IUnknown | IRAPISink:IUnknown


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft