Leaked source code of windows server 2003
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.
 
 
 
 
 
 

64 lines
1.4 KiB

//----------------------------------------------------------------------------
//
// triage.ini searching code
//
// Copyright (C) Microsoft Corporation, 2001.
//
//----------------------------------------------------------------------------
#ifndef __TRIAGER_H__
#define __TRIAGER_H__
typedef struct _TRIAGE_DATA {
CHAR Module[50];
CHAR Routine[100];
CHAR Followup[200];
CHAR fModulPartial:1; // Allow partial module match
CHAR fRoutinePartial:1; // Alow partial routine match
} TRIAGE_DATA, *PTRIAGE_DATA;
class CTriager
{
public:
CTriager();
~CTriager();
DWORD GetFollowup(PSTR FollowupBuffer,
ULONG FollowupBufferSize,
PSTR SymbolName);
void PrintTraigeInfo();
void GetFollowupDate(PSTR Module,
PSTR Routine,
PULONG Start,
PULONG End);
PSTR GetFollowupStr(PSTR Module,
PSTR Routine)
{
ULONG Index;
if ((Index = MatchSymbol(Module, Routine)) < m_EntryCount)
{
return m_pTriageData[Index].Followup;
}
return NULL;
}
private:
ULONG m_EntryCount;
PTRIAGE_DATA m_pTriageData;
ULONG MatchSymbol(PSTR Module, PSTR Routine);
};
extern CTriager *g_pTriager;
#endif // #ifndef __TRIAGER_H__