]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_win32wrapper.h
Win32: Rewrite the service wrapper
[user/henk/code/inspircd.git] / win / inspircd_win32wrapper.h
index d60276b88fb5d3d73ab35c9b0882b24533f2287c..75404ef8b29e170fb10230c61ae9621bbd19a97e 100644 (file)
@@ -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