Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method retrieves an IRAPIDeviceobject 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 RAPIDEVICEIDtype that uniquely identifies the Windows Embedded CE–based device that is being requested.

opFlags

[in] A member of the RAPI_GETDEVICEOPCODEenumeration 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