I add my event source into the registry after I run:
EventLog.add_event_source(
:source => EVENT_LOG,
:key_name => SOURCE_NAME,
:category_count => CATEGORIES,
:event_message_file => dll_file,
:category_message_file => dll_file,
:parameter_message_file => dll_file
)
How can I deregister the event_source from register without manually delete it from regedit? Is a ruby function like 'EventLog.delete_event_source' available?
Thank you in advance.
Qi
|