mirror of https://github.com/tongzx/nt5src
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.
37 lines
529 B
37 lines
529 B
#ifndef _THREAD_H_
|
|
#define _THREAD_H_
|
|
|
|
//
|
|
// Constant declarations
|
|
//
|
|
|
|
//
|
|
// Structure definitions
|
|
//
|
|
typedef struct _THREADFAULT
|
|
{
|
|
DWORD dwCallLevel;
|
|
DWORD dwPrevBP;
|
|
BPType prevBPType;
|
|
PVOID pCallStackList;
|
|
DWORD dwCallMarker;
|
|
DWORD dwThreadId;
|
|
struct _THREADFAULT *pNext;
|
|
} THREADFAULT, *PTHREADFAULT;
|
|
|
|
//
|
|
// Function definitions
|
|
//
|
|
PVOID
|
|
GetProfilerThreadData(VOID);
|
|
|
|
VOID
|
|
SetProfilerThreadData(PVOID pData);
|
|
|
|
PTHREADFAULT
|
|
AllocateProfilerThreadData(VOID);
|
|
|
|
VOID
|
|
InitializeThreadData(VOID);
|
|
|
|
#endif //_THREAD_H_
|