def ReportEvent(appName, eventID, eventCategory = 0, eventType=win32evtlog.EVENTLOG_ERROR_TYPE, strings = None, data = None, sid=None):
    # Get a handle to the Application event log
    hAppLog = win32evtlog.RegisterEventSource(None, appName)

    # Now report the event, which will add this event to the event log */
    win32evtlog.ReportEvent(hAppLog, # event-log handle \
        eventType,
        eventCategory,
        eventID,
        sid,
        strings,
        data)

    win32evtlog.DeregisterEventSource(hAppLog);
Wrapper for dump_fn. dump_fn writes its results to a stream object and
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/win32/lib/win32evtlogutil.py/ReportEvent--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/utilities/tests/test_codegen.py/get_string