[NTVDM]: it is always interesting to dump the full CPU state when an exception occurs.
[reactos.git] / rostests / rosautotest / precomp.h
1 #ifndef _ROSAUTOTEST_H_
2 #define _ROSAUTOTEST_H_
3
4 /* General includes */
5 #include <iostream>
6 #include <memory>
7 #include <sstream>
8 #include <string>
9 #include <vector>
10 #include <iomanip>
11
12 using namespace std;
13
14 #define WIN32_NO_STATUS
15 #define _INC_WINDOWS
16 #define COM_NO_WINDOWS_H
17 #include <windef.h>
18 #include <winbase.h>
19 #include <winnls.h>
20 #include <reason.h>
21 #include <shlobj.h>
22 #include <wininet.h>
23 #include <winreg.h>
24
25 #include <ndk/rtlfuncs.h>
26 #include <reactos/buildno.h>
27
28 /* Class includes */
29 #include "auto_array_ptr.h"
30 #include "CConfiguration.h"
31 #include "CFatalException.h"
32 #include "CInvalidParameterException.h"
33 #include "CProcess.h"
34 #include "CSimpleException.h"
35 #include "CTestInfo.h"
36 #include "CTest.h"
37 #include "CTestList.h"
38 #include "CJournaledTestList.h"
39 #include "CVirtualTestList.h"
40 #include "CWebService.h"
41 #include "CWineTest.h"
42
43 #include <rosautotestmsg.h>
44
45 /* Useful macros */
46 #define EXCEPTION(Message) throw CSimpleException(Message)
47 #define FATAL(Message) throw CFatalException(__FILE__, __LINE__, Message)
48 #define SSEXCEPTION throw CSimpleException(ss.str().c_str())
49
50 /* main.c */
51 extern CConfiguration Configuration;
52
53 /* misc.c */
54 VOID FreeLogs(VOID);
55 VOID InitLogs(VOID);
56 extern HANDLE hLog;
57
58 /* shutdown.c */
59 bool ShutdownSystem();
60
61 /* tools.c */
62 wstring AsciiToUnicode(const char* AsciiString);
63 wstring AsciiToUnicode(const string& AsciiString);
64 string EscapeString(const char* Input);
65 string EscapeString(const string& Input);
66 string GetINIValue(PCWCH AppName, PCWCH KeyName, PCWCH FileName);
67 bool IsNumber(const char* Input);
68 string StringOut(const string& String, bool forcePrint = true);
69 string UnicodeToAscii(PCWSTR UnicodeString);
70 string UnicodeToAscii(const wstring& UnicodeString);
71
72 #endif /* _ROSAUTOTEST_H_ */