예제 #1
0
 def register_process_hook(self, hook_type, callback, name=None):
     if not isinstance(hook_type, HookType.PROCESS):
         raise InvalidHookTypeException()
     return self._add_zelos_hook(hook_type, callback, name)
예제 #2
0
 def register_thread_hook(self, hook_type, callback, name=None):
     if not isinstance(hook_type, HookType.THREAD):
         raise InvalidHookTypeException()
     return self._add_zelos_hook(hook_type, callback, name)