/* Make builds smaller, leaner and faster */
#define VC_EXTRALEAN
+#define WIN32_LEAN_AND_MEAN
+
+/* Not defined in windows */
+#define SIGHUP 1
/* They just have to be *different*, don't they. */
#define PATH_MAX MAX_PATH
/* IPC Handlers */
class InspIRCd;
+class ValueItem;
+class ServerConfig;
-void InitIPC();
-void CheckIPC(InspIRCd * Instance);
-void CloseIPC();
+class IPC
+{
+ private:
+ InspIRCd* Instance;
+ HANDLE hIPCPipe;
+ public:
+ IPC(InspIRCd* Srv);
+ void Check();
+ ~IPC();
+};
/* Look up the nameserver in use from the registry on windows */
std::string FindNameServerWin();
/* Clear a windows console */
void ClearConsole();
+DWORD WindowsForkStart(InspIRCd* Instance);
+
+void WindowsForkKillOwner(InspIRCd* Instance);
+
+bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* value, ValueItem &data);
+
#endif