Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
844 B

/*++
Copyright (c) 1992 Microsoft Corporation
Module Name:
dpc.c
Abstract:
WinDbg Extension Api
Author:
Ramon J San Andres (ramonsa) 5-Nov-1993
Environment:
User Mode.
Revision History:
--*/
#include "precomp.h"
#pragma hdrstop
DECLARE_API( dpc )
/*++
Routine Description:
Arguments:
args -
Return Value:
None
--*/
{
ULONG DpcActiveFlag;
ULONG Processor;
sscanf(args,"%lX",&Processor);
if (Processor == 0xFFFFFFFF) {
Processor = 0;
}
//
// Address -> base of the prcb, read the PRCB itself in ntkext.c
//
ReadControlSpace(
(USHORT)Processor,
DEBUG_CONTROL_SPACE_DPCACTIVE,
(PULONG)&DpcActiveFlag,
sizeof(PULONG) );
dprintf("DpcActive flag is %08lx\n", DpcActiveFlag);
return;
}