[Mono-dev] local file based EventLog implementation
Kornél Pál
kornelpal at gmail.com
Wed Aug 9 04:43:39 EDT 2006
> Yeah I read it, but I think there is no answer to my question there.
> What I meant is that I think those Windows event log API would already
> take those messages into their returning strings, so I don't think our
> code does not have to load that EventLogMessages.dll and rip messages
> from it.
>
> Or if you mean, the equivalent event system on other OSes must
> also provide message table like that dll, I don't agree.
> (There should be many other way to achieve the same results.)
It is the API that needs a DLL with messages. So if we want to use the
Windows API we need a DLL similar to EventLogMessages.dll. We don't have to
rip messages because it only contains "%1"s but that's required because the
API reads messages from DLLs and only arguments are substututed (using
FormatMessage). By using "%1" as the message in the DLL the entire message
can be stored as a single argument.
Kornél
More information about the Mono-devel-list
mailing list