Does anyone out there have any sample code on how to read and write to a Windows NT Event Log?

I think I have to use the ReadEventLog, NotifyCHangeEventLog and ReportEvent Functions but I dont have any good examples on how to use them.