{
LONG i;
ULONG Dr7;
/* Loop every processor */for (i = 0; i < KeNumberProcessors; i++)
{
/* Get its DR7 */
Dr7 = KiProcessorBlock[i]->ProcessorState.SpecialRegisters.KernelDr7;
/* Check if any processor breakpoints are active */if (Dr7 != 0)
{
/* We can't allow running without a debugger then */returnSTATUS_ACCESS_DENIED;
}
}
/* No processor breakpoints; allow disabling the debugger */returnSTATUS_SUCCESS;
}
Generated on Sat May 26 2012 06:06:43 for ReactOS by
1.7.6.1
ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.