Re: Enumerate events in the system
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Mon, 4 Aug 2008 14:11:43 -0700
It's theoretically possible for the kernel to enumerate all events, but
there's no API for doing that (and I think that's a good thing). Again,
curiosity is a good thing, but I think you're wandering off into the jungle
for no good reason...
Paul T.
"Zsolt Szalay" <zsolt.szalay@xxxxxxxxxxxxxxxxxx> wrote in message
news:OfJb7On9IHA.2348@xxxxxxxxxxxxxxxxxxxxxxx
First of all thank you for your information and I agree with you.
But most respectfully, I would like to ask if it is possible to enumerate
the events that can be opened with OpenEvent or not?
Thank you again
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:OFblUhm9IHA.4628@xxxxxxxxxxxxxxxxxxxxxxx
OK, the documentation for the OS itself is what you'd have to look at.
Generally, events aren't used for this sort of thing. Device
notifications are sent to clients of RequestDeviceNotifications() and
RequestPowerNotifications(). There are some events that are used to
indicate that certain APIs are ready to be used and individual devices
might generate events that are specific to them, but there are few global
events whose functionality should be counted on. That is, I would be
surprised if your code to catch SimDetect on that one particular device
would work on any other device out there, unless this is some Windows
Mobile thing. Even if so, it's quite likely that the next version of the
OS would *not* work the same way, so basing your code on undocumented
capabilities, even if they're interesting, isn't a great idea.
So, you'd have to first enumerate what would be useful for you to know,
before you can go looking for events that do that. Even if there was
some event, "ImportantEvent", that you found in some way by enumerating
things, you'd have no method of knowing how you're supposed to use it,
whether waiting on it would break other things in the OS, etc. Just
having the list really isn't of any use. If you need to, "Find out when
X happens", tell us what that is and we may be able to point you in the
right direction.
Paul T.
.
- Follow-Ups:
- Re: Enumerate events in the system
- From: Bruce Eitman [eMVP]
- Re: Enumerate events in the system
- References:
- Enumerate events in the system
- From: Zsolt Szalay
- Re: Enumerate events in the system
- From: Paul G. Tobey [eMVP]
- Re: Enumerate events in the system
- From: Zsolt Szalay
- Re: Enumerate events in the system
- From: Paul G. Tobey [eMVP]
- Re: Enumerate events in the system
- From: Zsolt Szalay
- Enumerate events in the system
- Prev by Date: Re: Enumerate events in the system
- Next by Date: Re: Enumerate events in the system
- Previous by thread: Re: Enumerate events in the system
- Next by thread: Re: Enumerate events in the system
- Index(es):
Relevant Pages
|
|