[ROSAUTOTEST]
[reactos.git] / rostests / rosautotest / precomp.h
index 1960bc6..fa752b8 100644 (file)
@@ -1,7 +1,11 @@
+#ifndef _ROSAUTOTEST_H_
+#define _ROSAUTOTEST_H_
+
 /* General includes */
 #include <iostream>
 #include <memory>
 #include <sstream>
+#include <string>
 #include <vector>
 #include <iomanip>
 
@@ -16,6 +20,7 @@ using namespace std;
 #include <reason.h>
 #include <shlobj.h>
 #include <wininet.h>
+#include <winreg.h>
 
 #include <ndk/rtlfuncs.h>
 #include <reactos/buildno.h>
@@ -25,8 +30,11 @@ using namespace std;
 #include "CConfiguration.h"
 #include "CFatalException.h"
 #include "CInvalidParameterException.h"
+#include "CPipe.h"
 #include "CProcess.h"
+#include "CPipedProcess.h"
 #include "CSimpleException.h"
+#include "CTestException.h"
 #include "CTestInfo.h"
 #include "CTest.h"
 #include "CTestList.h"
@@ -35,14 +43,22 @@ using namespace std;
 #include "CWebService.h"
 #include "CWineTest.h"
 
+#include <rosautotestmsg.h>
+
 /* Useful macros */
-#define EXCEPTION(Message)   throw CSimpleException(Message)
-#define FATAL(Message)       throw CFatalException(__FILE__, __LINE__, Message)
-#define SSEXCEPTION          throw CSimpleException(ss.str().c_str())
+#define EXCEPTION(Message)     throw CSimpleException(Message)
+#define FATAL(Message)         throw CFatalException(__FILE__, __LINE__, Message)
+#define SSEXCEPTION            throw CSimpleException(ss.str())
+#define TESTEXCEPTION(Message) throw CTestException(Message)
 
 /* main.c */
 extern CConfiguration Configuration;
 
+/* misc.c */
+VOID FreeLogs(VOID);
+VOID InitLogs(VOID);
+extern HANDLE hLog;
+
 /* shutdown.c */
 bool ShutdownSystem();
 
@@ -57,9 +73,4 @@ string StringOut(const string& String, bool forcePrint = true);
 string UnicodeToAscii(PCWSTR UnicodeString);
 string UnicodeToAscii(const wstring& UnicodeString);
 
-
-/* Lazy HACK to allow compiling/debugging with MSVC while we lack support
-   for linking against "debugsup_ntdll" in MSVC */
-#ifdef _MSC_VER
-    #define DbgPrint
-#endif
+#endif /* _ROSAUTOTEST_H_ */