Re: GetIfEntry - dwLastChange - Need Vista/NDIS compatable information



Aha. Then it may be TimeOfLastReset  property of  Win32_NetworkAdapter
WMI class (as advised by Kellie).

Pavel.,

No. That time only reports the reset of the interface hardware from a
reboot, system restart or maybe (untested) uninstalling and
reinstalling the hardware through Add/Remove Hardware.

See my test code above and try it for yourself. Note the duration of
the NIC from its Status dialog, run my test program, note the
TimeOfLastReset. Change the NIC by disabling and enableing it. Check
the duration in the Status dialog. Check the test program
TimeOfLastReset again. It reports incorrectly.

To correctly implement this I would have to program a driver which
loads at boot time and watches for changes. Beyond the scope of the
program as the driver would be running whether my program was active
or not. Not to mention I was not expecting to learn driver
developement.

People are getting the Duration of the Connection, which I need,
confused with the Time of Last Reset of the interface..

I'm giving up on this at this time. Too much time on it. Too many
other problems to solve.

Thanks everyone for the help.
BlueNozer...
.



Relevant Pages

  • Re: asrock, problem with nic after windows-boot - Exact Opposite issue the OP is having
    ... power-cycle (or front panel reset button), ... I like to think of myself as more of a 'hardware' guy than 'software' ... opposed to a *cold* boot, - since also the RAM doesn't necessarily get ... of being away, I booted up (into GRUB, then chose Debian) and could not ...
    (comp.os.linux.networking)
  • Re: asrock, problem with nic after windows-boot - Exact Opposite issue the OP is having
    ... issue seems to be the almost exact *opposite* of the OP's; In my win98 ... The rational is that a power-cycle or front panel reset switch does a full ... resets all hardware to a known state. ... just generates a signal to the operating system ALONE to start ...
    (comp.os.linux.networking)
  • Re: BIOS startup ??
    ... To describe what happens depends on what kind of hardware is being ... the reset threshold of the processor, ... disk drives have their heads ... And typically all the clocks are ...
    (Fedora)
  • Re: Giving up on Linux...
    ... >> secondly they don't know who to send reports to? ... Where are the fixes for the latest hardware? ... Where are the lines in Bugzilla that say "Fixed in kernel version ... In all my time using Redhat and Fedora, ...
    (Fedora)
  • Re: Router Rest Logic (rant)
    ... but as anyone who has ever dealt with a wireless router, ... A short tap of the reset button just reboots the router. ... Better hardware would have done exactly nothing. ...
    (alt.internet.wireless)