adb25fbc2fd072bf818ed61ad5e6551c4f96b10a
[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
24 #include <ndk/rtlfuncs.h>
25 #include <reactos/buildno.h>
26
27 /* Class includes */
28 #include "auto_array_ptr.h"
29 #include "CConfiguration.h"
30 #include "CFatalException.h"
31 #include "CInvalidParameterException.h"
32 #include "CProcess.h"
33 #include "CSimpleException.h"
34 #include "CTestInfo.h"
35 #include "CTest.h"
36 #include "CTestList.h"
37 #include "CJournaledTestList.h"
38 #include "CVirtualTestList.h"
39 #include "CWebService.h"
40 #include "CWineTest.h"
41
42 /* Useful macros */
43 #define EXCEPTION(Message) throw CSimpleException(Message)
44 #define FATAL(Message) throw CFatalException(__FILE__, __LINE__, Message)
45 #define SSEXCEPTION throw CSimpleException(ss.str().c_str())
46
47 /* main.c */
48 extern CConfiguration Configuration;
49
50 /* shutdown.c */
51 bool ShutdownSystem();
52
53 /* tools.c */
54 wstring AsciiToUnicode(const char* AsciiString);
55 wstring AsciiToUnicode(const string& AsciiString);
56 string EscapeString(const char* Input);
57 string EscapeString(const string& Input);
58 string GetINIValue(PCWCH AppName, PCWCH KeyName, PCWCH FileName);
59 bool IsNumber(const char* Input);
60 string StringOut(const string& String, bool forcePrint = true);
61 string UnicodeToAscii(PCWSTR UnicodeString);
62 string UnicodeToAscii(const wstring& UnicodeString);
63
64 #endif /* _ROSAUTOTEST_H_ */