IrDA Framework
ContentsIndexHome
PreviousUpNext
TwclIrDAReceiver.Discover Method

Discovers nearby IrDA devices.

Syntax
Pascal
function Discover(out Devices: TwclIrDADevices): Integer;
Parameters 
Description 
out Devices: TwclIrDADevices 
The array of found IrDA devices.
An application is responsible to release the memory allocated for the Devices dynamic array.
 

If the function successed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The method executes discovering on all connected IrDA adapters.  

Even if method successed the Devices parameter can be set to nil if no one IrDA device was found. An application must always check the returned valud of the Devices parameter.  

This method can be called from separate thread.  

 

Copyright (c) 2006-2017. All rights reserved.