2009-03-21 01:39:04 +00:00
|
|
|
/* General includes */
|
|
|
|
#include <iostream>
|
|
|
|
#include <memory>
|
|
|
|
#include <sstream>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2012-02-05 20:56:21 +00:00
|
|
|
#include <iomanip>
|
2009-01-05 12:41:34 +00:00
|
|
|
|
2009-03-21 01:39:04 +00:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
2009-01-05 12:41:34 +00:00
|
|
|
#include <windows.h>
|
2009-03-21 01:39:04 +00:00
|
|
|
#include <ndk/rtlfuncs.h>
|
2009-01-05 12:41:34 +00:00
|
|
|
#include <reason.h>
|
2009-03-21 01:39:04 +00:00
|
|
|
#include <shlobj.h>
|
2009-01-05 12:41:34 +00:00
|
|
|
#include <wininet.h>
|
|
|
|
|
2009-03-21 01:39:04 +00:00
|
|
|
#include <ndk/rtlfuncs.h>
|
2009-01-05 12:41:34 +00:00
|
|
|
#include <reactos/buildno.h>
|
|
|
|
|
2009-03-21 01:39:04 +00:00
|
|
|
/* Class includes */
|
|
|
|
#include "auto_array_ptr.h"
|
|
|
|
#include "CConfiguration.h"
|
|
|
|
#include "CFatalException.h"
|
|
|
|
#include "CInvalidParameterException.h"
|
|
|
|
#include "CProcess.h"
|
|
|
|
#include "CSimpleException.h"
|
|
|
|
#include "CTestInfo.h"
|
|
|
|
#include "CTest.h"
|
|
|
|
#include "CTestList.h"
|
|
|
|
#include "CJournaledTestList.h"
|
|
|
|
#include "CVirtualTestList.h"
|
|
|
|
#include "CWebService.h"
|
|
|
|
#include "CWineTest.h"
|
|
|
|
|
|
|
|
/* Useful macros */
|
|
|
|
#define EXCEPTION(Message) throw CSimpleException(Message)
|
2009-03-24 12:37:54 +00:00
|
|
|
#define FATAL(Message) throw CFatalException(__FILE__, __LINE__, Message)
|
2009-03-21 01:39:04 +00:00
|
|
|
#define SSEXCEPTION throw CSimpleException(ss.str().c_str())
|
2009-01-05 12:41:34 +00:00
|
|
|
|
|
|
|
/* main.c */
|
2009-03-21 01:39:04 +00:00
|
|
|
extern CConfiguration Configuration;
|
2009-01-05 12:41:34 +00:00
|
|
|
|
|
|
|
/* shutdown.c */
|
2009-03-21 01:39:04 +00:00
|
|
|
bool ShutdownSystem();
|
2009-01-05 12:41:34 +00:00
|
|
|
|
|
|
|
/* tools.c */
|
2009-03-21 01:39:04 +00:00
|
|
|
wstring AsciiToUnicode(const char* AsciiString);
|
|
|
|
wstring AsciiToUnicode(const string& AsciiString);
|
|
|
|
string EscapeString(const char* Input);
|
|
|
|
string EscapeString(const string& Input);
|
|
|
|
string GetINIValue(PCWCH AppName, PCWCH KeyName, PCWCH FileName);
|
|
|
|
bool IsNumber(const char* Input);
|
|
|
|
void StringOut(const string& String);
|
|
|
|
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
|