windows-event-log-sample.py ����nU @�6�nU # -*- coding:utf-8 -*- import win32api import win32con import win32evtlog import win32security import win32evtlogutil import time class EventLog: def __init__(self): ''' - SID の生成 - refer to http://www.atmarkit.co.jp/ait/articles/0306/28/news004.html ''' self.ph = win32api.GetCurrentProcess() self.th = win32security.OpenProcessToken(self.ph, win32con.TOKEN