User Manual

Programmer's reference29
Copyright © 2005-2010 Pico Technology Ltd. All rights reserved.adc20.en
5.4.12
HRDLOpenUnitProgress
short HRDLOpenUnitProgress(
short * handle,
short * progress )
Checks the progress of an asynchronous open operation.
Arguments
handle
Pointer to a short where the unit handle is to be written:
-1: if the unit fails to open
0: if no unit is found
>0 : a handle to the device opened (this handle is not valid unless the
function returns true)
progress
Pointer to a short to which the percentage progress is to be written. 100%
implies that the open operation is complete
Returns
0 if open operation is still in progress
1 if the open operation is complete