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