Make WinVNC service mode work on Windows Vista and beyond.
Patch by Jochen Tucht, fixes bug 135.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5158 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/winvnc/VNCServerService.h b/win/winvnc/VNCServerService.h
index c7a76cc..a55a729 100644
--- a/win/winvnc/VNCServerService.h
+++ b/win/winvnc/VNCServerService.h
@@ -21,19 +21,23 @@
#include <winvnc/VNCServerWin32.h>
#include <rfb_win32/Service.h>
+#include <rfb_win32/DynamicFn.h>
namespace winvnc {
class VNCServerService : public rfb::win32::Service {
public:
- VNCServerService(VNCServerWin32& s);
+ VNCServerService();
DWORD serviceMain(int argc, TCHAR* argv[]);
void stop();
static const TCHAR* Name;
protected:
- VNCServerWin32& server;
+ rfb::win32::DynamicFn<void (WINAPI *)(BOOL)> SendSas;
+ rfb::win32::Handle stopServiceEvent;
+ rfb::win32::Handle sessionEvent;
+ rfb::win32::Handle sessionEventCad;
};
};