2009-03-21 01:39:04 +00:00
|
|
|
/* General includes */
|
|
|
|
#include <iostream>
|
|
|
|
#include <memory>
|
|
|
|
#include <sstream>
|
2013-06-22 16:38:27 +00:00
|
|
|
#include <string>
|
2009-03-21 01:39:04 +00:00
|
|
|
#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
|
2013-02-05 17:54:22 +00:00
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winnls.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);
|
2012-08-14 20:25:58 +00:00
|
|
|
string StringOut(const string& String, bool forcePrint = true);
|
2009-03-21 01:39:04 +00:00
|
|
|
string UnicodeToAscii(PCWSTR UnicodeString);
|
|
|
|
string UnicodeToAscii(const wstring& UnicodeString);
|