Logs an event message to a job other than the current one. (Use DSLogInfo, DSLogFatal, or DSLogWarn to log an event to the current job.)
ErrCode = DSLogEvent (JobHandle, EventType, EventMsg)
JobHandle is the handle for the job as derived from DSAttachJob.
EventType is the type of event logged and is one of:
EventMsg is a string containing the event message.
ErrCode is 0 if there is no error. Otherwise it contains one of the following errors: