"Anis" <an**********@gmail.comwrote
hi,
i want to know what is event that windows log in "Event Log".
i have read that there r some services that log the event, but at the
base level what exactly event is ?
and can we make our own events and can supply that to those services?
Windows works by sending "messages" to windows.
If we are writing our program in C, we instantly have a problem. C only
allows us to call functions, not to receive messages.
The workaround is to pass a pointer to a message processing function to the
Windows system. Windows then calls this function from its internals. That is
one example of why function pointers can be useful.
Now there will be ways to getting Windows to log the calls it makes to the
message processing functions, and there will be ways of getting Windows to
generate such calls. However that takes us too far from the C language
issues of your question and into the details of the Windows implementation,
which is not topical here. However comp.os.windows.programmer will probably
be only too happy to help.
--
Buy my book 12 Common Atheist Arguments (refuted)
$1.25 download or $7.20 paper, available
www.lulu.com/bgy1mm