I created classes for outputting trace messages to Process Monitor.

I created the ProcessMonitor and ProcessMonitorTraceListener classes.
These classes are used to send diagnostic trace output to the Process
Monitor logs at runtime.