summaryrefslogtreecommitdiff
path: root/win/inspircd_win32wrapper.h
diff options
context:
space:
mode:
authorChrisTX <chris@rev-crew.info>2013-03-23 23:52:51 +0100
committerattilamolnar <attilamolnar@hush.com>2013-03-25 14:57:05 +0100
commit25aa23067133fa80df009c2245742b3b7749c2e5 (patch)
tree50e9e6603d8a9322f28efb2a5115911d0d3e2b1d /win/inspircd_win32wrapper.h
parentf2a5fa58edb13ad70764ecd8c5d52041b8b6eed0 (diff)
Win32: Rewrite the service wrapper
Edited original commit to pass MAX_PATH as nSize to GetModuleFileNameA() instead of 101 after approval from author @ChrisTX (Attila Molnar) Fixes #404 reported by @crchauffe
Diffstat (limited to 'win/inspircd_win32wrapper.h')
-rw-r--r--win/inspircd_win32wrapper.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h
index d60276b88..75404ef8b 100644
--- a/win/inspircd_win32wrapper.h
+++ b/win/inspircd_win32wrapper.h
@@ -186,5 +186,20 @@ void ::operator delete(void * ptr);
#define DISABLE_WRITEV
+#include <exception>
+
+class CWin32Exception : public std::exception
+{
+public:
+ CWin32Exception();
+ CWin32Exception(const CWin32Exception& other);
+ virtual const char* what() const throw();
+ DWORD GetErrorCode();
+
+private:
+ char szErrorString[500];
+ DWORD dwErrorCode;
+};
+
#endif