views:

233

answers:

0

Hi all,

I'm currently working with mfc to make user application that shows connection status. I use WMI to get all of the queries that i need like status, network name, speed, signal strength except duration of connection.

I tried to google how to get the duration of connection using wmi but i only find TimeOfLastReset query in Win32_NetworkAdapter class. Unfortunately, when i debug the result of this query i found that the result was not the same with my windows wireless network connection status.

Anyone can help me to find the right query for getting this duration of connection?? Or if i can't use wmi, what should i use then??

Thanks Anton