This example shows what a call to RegisterSource looks like. Refer to ISystemDebugEventInstall Example (Visual J++) to see the constant declarations and object creation code, as well as to see this code in a form you can run with minor modifications.
// Register the component.
// SAMPLE_SOURCE_GUID is defined above; substitute the GUID for your
// component.
private static void SampleRegisterSource()
{
m_ESA.RegisterSource( "Sample Event Source", SAMPLE_SOURCE_GUID );
}