public void OnFunctionCalled(NktHook hook, NktProcess process, NktHookCallInfo hookCallInfo) { string function = hook.FunctionName.ToLower(); wrappers.FunctionWrapper functionWr = new wrappers.FunctionWrapper(hook, process, hookCallInfo); stackFunctions.Push(functionWr); while (functionWr.status == wrappers.FunctionWrapper.Status.Waiting) { System.Threading.Thread.Sleep(0); } if (functionWr.status == wrappers.FunctionWrapper.Status.Droped) { hookCallInfo.SkipCall(); Program.data.AceptingNewFunctions = true; return; } Program.data.AceptingNewFunctions = true; }