A newbie question.

Does Windows XP record the time when a device is plugged in/out? If
so, can it be programmatically accessed in VS C++?

I checked the Event Viewer and do not see anything in the log.

Thanks.

B.

Re: Device Plugin time on Windows XP by Tim

Tim
Sat Dec 30 00:09:36 CST 2006

brian.aurilio@gmail.com wrote:
>
>A newbie question.
>
>Does Windows XP record the time when a device is plugged in/out? If
>so, can it be programmatically accessed in VS C++?

No, but your application can register to be notified of such events.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Re: Device Plugin time on Windows XP by brian

brian
Tue Jan 02 09:03:51 CST 2007


Hi,

You're correct. The problem is when the application is not up and
running. When the device is plugged in (powered on), it performs an
expensive initialization operation. This operation needs to be
performed every N hours when used by the app. When the app starts up,
the idea is not perform this initialiization if within the N hour time
window.

I'm just surprised that the OS does not log when a device is plugged
in.

Thanks,

B.

Tim Roberts wrote:
> brian.aurilio@gmail.com wrote:
> >
> >A newbie question.
> >
> >Does Windows XP record the time when a device is plugged in/out? If
> >so, can it be programmatically accessed in VS C++?
>
> No, but your application can register to be notified of such events.
> --
> Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc.


Re: Device Plugin time on Windows XP by Maxim

Maxim
Wed Jan 03 15:56:57 CST 2007

Write a coinstaller DLL for the device which will do this "logging" by
means of registry value or such.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

<brian.aurilio@gmail.com> wrote in message
news:1167750231.328743.293080@i12g2000cwa.googlegroups.com...
>
> Hi,
>
> You're correct. The problem is when the application is not up and
> running. When the device is plugged in (powered on), it performs an
> expensive initialization operation. This operation needs to be
> performed every N hours when used by the app. When the app starts up,
> the idea is not perform this initialiization if within the N hour time
> window.
>
> I'm just surprised that the OS does not log when a device is plugged
> in.
>
> Thanks,
>
> B.
>
> Tim Roberts wrote:
> > brian.aurilio@gmail.com wrote:
> > >
> > >A newbie question.
> > >
> > >Does Windows XP record the time when a device is plugged in/out? If
> > >so, can it be programmatically accessed in VS C++?
> >
> > No, but your application can register to be notified of such events.
> > --
> > Tim Roberts, timr@probo.com
> > Providenza & Boekelheide, Inc.
>