A version of this page is also available for
This method retrieves an IRAPIDevice object representing a Windows Embedded CE–based device connected to the desktop.
HRESULT FindDevices( RAPIDEVICEID *pDeviceID, RAPI_GETDEVICEOPCODE opFlags,..IRAPIDevice** ppIDevice );
[in] Reference to a RAPIDEVICEID type that uniquely identifies the Windows Embedded CE–based device that is being requested.
[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.
[out] Reference to an IRAPIDevice object that represents a connected Windows Embedded CE–based device.
If the operation was successful, the return value is NOERROR.
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.
|Windows Embedded CE||Windows Embedded CE 6.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|