Exemplo n.º 1
0
        public OnyxThreadInterceptor()
        {
            var hKernel32     = OnyxNative.LoadLibrary("kernel32.dll");
            var pCreateThread = OnyxNative.GetProcAddress(hKernel32, "CreateThread");

            _dCreateThreadHandler = CreateThreadHandler;
            _detourCreateThread   = new OnyxDetour(pCreateThread, _dCreateThreadHandler);
            _detourCreateThread.IgnoreThreadChecking = true;
        }