57acaf835df6aeb378ffd056e09dcc3adfa2603a
[reactos.git] / rostests / rosautotest / precomp.h
1 /* General includes */
2 #include <iostream>
3 #include <memory>
4 #include <sstream>
5 #include <string>
6 #include <vector>
7
8 using namespace std;
9
10 #define WIN32_NO_STATUS
11 #include <windows.h>
12 #include <ndk/rtlfuncs.h>
13 #include <reason.h>
14 #include <shlobj.h>
15 #include <wininet.h>
16
17 #include <ndk/rtlfuncs.h>
18 #include <reactos/buildno.h>
19
20 /* Class includes */
21 #include "auto_array_ptr.h"
22 #include "CConfiguration.h"
23 #include "CFatalException.h"
24 #include "CInvalidParameterException.h"
25 #include "CProcess.h"
26 #include "CSimpleException.h"
27 #include "CTestInfo.h"
28 #include "CTest.h"
29 #include "CTestList.h"
30 #include "CJournaledTestList.h"
31 #include "CVirtualTestList.h"
32 #include "CWebService.h"
33 #include "CWineTest.h"
34
35 /* Useful macros */
36 #define STRINGIZER(Value) #Value
37 #define EXCEPTION(Message) throw CSimpleException(Message)
38 #define FATAL(Message) throw CFatalException(__FILE__, STRINGIZER(__LINE__), Message)
39 #define SSEXCEPTION throw CSimpleException(ss.str().c_str())
40
41 /* main.c */
42 extern CConfiguration Configuration;
43
44 /* shutdown.c */
45 bool ShutdownSystem();
46
47 /* tools.c */
48 wstring AsciiToUnicode(const char* AsciiString);
49 wstring AsciiToUnicode(const string& AsciiString);
50 string EscapeString(const char* Input);
51 string EscapeString(const string& Input);
52 string GetINIValue(PCWCH AppName, PCWCH KeyName, PCWCH FileName);
53 bool IsNumber(const char* Input);
54 void StringOut(const string& String);
55 string UnicodeToAscii(PCWSTR UnicodeString);
56 string UnicodeToAscii(const wstring& UnicodeString);
57
58
59 /* Lazy HACK to allow compiling/debugging with MSVC while we lack support
60 for linking against "debugsup_ntdll" in MSVC */
61 #ifdef _MSC_VER
62 #define DbgPrint
63 #endif