GetFileTransferProgress
Top  Previous  Next

Description

Returns the progress of the current file access operation in percent.


Syntax


[VB]
Value=objActiveUSB.GetFileTransferProgress( Name )


[C/C++]
HRESULT GetFileTransferProgress(bstr Name, float* pValue );


Data Types
[VB]

Name: String
Return value
: Single


Parameters
[C/C++]

Name [in]  
String specifying the name of the file  
pValue [out, retval]  
Pointer to the value indicating the progress of the current file access operation in percent  


Return Values


S_OK  
Success  
E_NOINTERFACE        
File with the specified name does not exist in the device  
E_FAIL  
Failed  
 

Example


The following VB example demonstrates the use of a scroll control for real-time adjustment of the "GainRaw" feature.

Private Sub
 Form_Load()

ActiveUSB1.Acquire=
True

HScroll1.Value = ActiveUSB1.GetFeature("GainRaw")
HScroll1.Min = ActiveUSB1.GetFeatureMin("GainRaw")
HScroll1.Max = ActiveUSB1.GetFeatureMax("GainRaw")
End Sub


Private Sub
 HScroll1_Scroll()

ActiveUSB1.SetFeature("GainRaw", HScroll1.Value)

End Sub

 

Remarks