Posts: 863
Threads: 197
Joined: Apr 2005
How can I get the information about connection?
Duration
Speed
Activity
Bytes: Sent / Received
I found
http://www.autoitscript.com/forum/index ... ntry603542
Posts: 12,140
Threads: 142
Joined: Dec 2002
Use performance counters. Example should be somewhere in Resources -> first topic.
Look for class CPerformanceCounter.
Posts: 863
Threads: 197
Joined: Apr 2005
performance counters depend of Network Interface name.
Is there any way to work in any computer?
Posts: 12,140
Threads: 142
Joined: Dec 2002
Look in macro "WMI enum processes IDispatch", something similar.
Posts: 863
Threads: 197
Joined: Apr 2005
In Win32_PerfRawData_Tcpip_NetworkInterface:
Is Timestamp_PerfTime the time of connection?
In affirmative case: how convert it to 0:00:00 format?
Posts: 12,140
Threads: 142
Joined: Dec 2002
Don't know, look in MSDN.
Posts: 863
Threads: 197
Joined: Apr 2005
Quote:In MSDN
Timestamp_PerfTime
Data type: uint64
Access type: Read-only
High Performance counter timestamp. A value could be obtained by calling the Windows function QueryPerformanceCounter. This property is inherited from Win32_Perf.
How convert it in 0:00:00?
Posts: 12,140
Threads: 142
Joined: Dec 2002
Maybe it is system time as returned by QueryPerformanceCounter. Then use perf instead, as it returns more convenient value, number of microseconds.
If it is network time, use QueryPerformanceFrequency to convert it to microseconds, then divide...