[Mono-list] In Linux, does Mono support OpenEventLog, ReadEventLog... functions in Advapi32.dll?

yao2000 yaohuangnt at yahoo.com
Wed Nov 14 14:49:03 EST 2007


I am testing my code to open/read Windows eventlog. My code is written in
C#, When I compile and run the code in Mono under Windows OS, the code works
fine. But if I move the code to RH Linux, then compile by gmcs and run by
mono, I get the error:

Unhandled Exception: System.DllNotFoundException: Advapi32.dll

To call Win32 API from C#, the OpenEventLog() function is declared as below
to map Win32 API.

        public static extern int OpenEventLog(string server, // use local
                        string EVENTLOG); // source name

Does Mono have not implemented EventLog operations in Linux yet?

Any help and confirmation are welcome.


View this message in context: http://www.nabble.com/In-Linux%2C-does-Mono-support-OpenEventLog%2C-ReadEventLog...-functions-in-Advapi32.dll--tf4807584.html#a13754981
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list