public static void DetourIsThreadIntercepted( IntPtr handle, int threadId, out bool result) { if (Is64Bit) { HandleErrorCode(NativeApi64.DetourIsThreadIntercepted(handle, threadId, out result)); } else { HandleErrorCode(NativeApi32.DetourIsThreadIntercepted(handle, threadId, out result)); } }