First make sure the computer is installed on the Thunder, open vs.net Click menu: Project-> Add Reference->com-> Add Reference to Thunderagent 1.0 Type Library.
1. Create a lightning Call object
Private Thundereng as New thunderagentlib.agent ' Create a lightning call object
Thundereng.addtask ("Download Address", "Save file name", "Save Directory", "Task note", "Reference address", "Start Mode", "Download from original address only", "Download threads from original address") ' Add download task
Thundereng.committasks () ' Submit download task
2. Use the mine Call object query Download task information
Sfilesize = Thundereng.gettaskinfo (Txturl.text, "FileSize") ' Get download file size
Sdownedsize = Thundereng.gettaskinfo (Txturl.text, "completedsize") ' Get completed size
sFileName = Thundereng.gettaskinfo (txturl.text, "filename") ' Get filename
Second, the Thunder platform interface function definition
Get information
1. BSTR GetInfo (BSTR pinfoname)
Function: Get Thunder or platform related information
Parameters:
Name of parameter |
Meaning |
Pinfoname |
Information name, there are 4 kinds "Thunderexists": whether the Thunderbolt exists "Thunderrunning": The Thunderbolt is running "Thunderversion": Thunder version number "Platformversion": Platform version number |