Do you know if you (your program) has permissions to write to the Security event log?
seems to indicate that the default is that you would not. In fact, if I read that article correctly, you will not be able to use the regular event APIs (what Win32::EventLog uses) to write to the Security event log at all on XP/2003 and higher, regardless of permissions.