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)
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)