[WORDPAD] Sync with Wine Staging 1.7.55. CORE-10536
[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 "CPipe.h"
34 #include "CProcess.h"
35 #include "CPipedProcess.h"
36 #include "CSimpleException.h"
37 #include "CTestException.h"
38 #include "CTestInfo.h"
39 #include "CTest.h"
40 #include "CTestList.h"
41 #include "CJournaledTestList.h"
42 #include "CVirtualTestList.h"
43 #include "CWebService.h"
44 #include "CWineTest.h"
45
46 #include <rosautotestmsg.h>
47
48 /* Useful macros */
49 #define EXCEPTION(Message) throw CSimpleException(Message)
50 #define FATAL(Message) throw CFatalException(__FILE__, __LINE__, Message)
51 #define SSEXCEPTION throw CSimpleException(ss.str())
52 #define TESTEXCEPTION(Message) throw CTestException(Message)
53
54 /* main.c */
55 extern CConfiguration Configuration;
56
57 /* misc.c */
58 VOID FreeLogs(VOID);
59 VOID InitLogs(VOID);
60 extern HANDLE hLog;
61
62 /* shutdown.c */
63 bool ShutdownSystem();
64
65 /* tools.c */
66 wstring AsciiToUnicode(const char* AsciiString);
67 wstring AsciiToUnicode(const string& AsciiString);
68 string EscapeString(const char* Input);
69 string EscapeString(const string& Input);
70 string GetINIValue(PCWCH AppName, PCWCH KeyName, PCWCH FileName);
71 bool IsNumber(const char* Input);
72 string StringOut(const string& String, bool forcePrint = true);
73 string UnicodeToAscii(PCWSTR UnicodeString);
74 string UnicodeToAscii(const wstring& UnicodeString);
75
76 #endif /* _ROSAUTOTEST_H_ */