Watt-32 tcp/ip  2.2 dev-rel.10
stkwalk.h
1 /*
2  * File:
3  * stkwalk.h
4  *
5  * Remarks:
6  *
7  * Note:
8  *
9  * Author:
10  * Jochen Kalmbach
11  *
12  */
13 
14 #ifndef __STACKWALKER_H__
15 #define __STACKWALKER_H__
16 
17 #ifndef _X86_
18 #error Only INTEL environments are supported!
19 #endif
20 
21 enum eAllocCheckOutput {
22  ACOutput_Simple = 1,
23  ACOutput_Advanced
24  };
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 int InitAllocCheckWN (enum eAllocCheckOutput eOutput,
31  LPCTSTR pszFilename,
32  ULONG ulShowStackAtAlloc);
33 
34 int InitAllocCheck (enum eAllocCheckOutput eOutput,
35  BOOL bSetUnhandledExeptionFilter,
36  ULONG ulShowStackAtAlloc);
37 
38 ULONG DeInitAllocCheck (void);
39 void OnlyInstallUnhandeldExceptionFilter (enum eAllocCheckOutput eOutput);
40 void ShowStack (HANDLE hThread, const CONTEXT *c, const char *pszLogFile);
41 const char *StackWalkLogFile (void);
42 void SetCallStackOutputType (enum eAllocCheckOutput eOutput);
43 
44 #ifdef __cplusplus
45 };
46 #endif
47 
48 #endif // __STACKWALKER_H__