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.
 
 
 
 
 
 

62 lines
769 B

/*++
Copyright (c) 1992 Microsoft Corporation
Module Name:
tss.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( tss )
/*++
Routine Description:
Arguments:
args -
Return Value:
None
--*/
{
ULONG Address;
ULONG TaskRegister;
KTRAP_FRAME TrapFrame;
NTSTATUS status;
sscanf(args,"%lX", &TaskRegister);
status = TaskGate2TrapFrame ( dwProcessor, (USHORT) TaskRegister, &TrapFrame, &Address);
if (status != STATUS_SUCCESS) {
dprintf("unable to get Task State Segment contents\n");
return;
}
DisplayTrapFrame (&TrapFrame, 0);
}