Re: Enumerate events in the system



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.




.



Relevant Pages

  • Re: Enumerate events in the system
    ... but that's one single event on one single device. ... Paul T. ... enumerate the events that can be opened with OpenEvent or not? ...
    (microsoft.public.windowsce.embedded)
  • Re: Enumerate events in the system
    ... Paul T. ... would be surprised if your code to catch SimDetect on that one ... So, you'd have to first enumerate what would be useful for you to know, ...
    (microsoft.public.windowsce.embedded)
  • RE: enumerating process threads form user mode
    ... Win32 provided 2 sets of APIs to enumerate the process list: ToolHelp API ... Microsoft Online Community Support ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Zip API in WindowsXP
    ... pop-up displaying the first 10 or so entries in the zip file. ... got to be a way to tap into the API that XP uses to enumerate the ...
    (microsoft.public.vb.winapi)
  • RE: Enum Servers and machines on the network.
    ... I recommend that you use Network Management API to retrive the computers, ... For the net shares, you can refer to the API for Network Share Management: ... you can use ADSI APIs to access active directory to enumerate related ...
    (microsoft.public.vb.winapi.networks)