Share via


IRAPIDesktop::FindDevice

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method retrieves an IRAPIDevice object representing a Windows Embedded CE–based device connected to the desktop.

Syntax

HRESULT FindDevices(
  RAPIDEVICEID *pDeviceID,
  RAPI_GETDEVICEOPCODE opFlags,..IRAPIDevice** ppIDevice
);

Parameters

  • pDeviceID
    [in] Reference to a RAPIDEVICEID type that uniquely identifies the Windows Embedded CE–based device that is being requested.
  • opFlags
    [in] A member of the RAPI_GETDEVICEOPCODE enumeration indicating whether the method call should block until a response is received. This value should always be RAPI_GETDEVICE_NONBLOCKING.
  • pDeviceID
    [out] Reference to an IRAPIDevice object that represents a connected Windows Embedded CE–based device.

Return Value

If the operation was successful, the return value is NOERROR.

Remarks

If the RAPIDEVICEID identifier for a remote device is not known, an IRAPIDevice object associated with the device can be retreived using the IRAPIDesktop::EnumDevices method. After this has been done, the IRAPIDevice::GetDeviceInfo method can be used to obtain the RAPIDEVICEID of the device.

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

IRAPIDesktop
IRAPIDesktop::EnumDevices
IRAPIDevice