/[rdesktop]/sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hook.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hook.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 937 - (show annotations)
Fri Jul 1 06:50:52 2005 UTC (18 years, 10 months ago) by astrand
File MIME type: text/plain
File size: 1188 byte(s)
Indenting with astyle instead of indent

1 //*********************************************************************************
2 //
3 //Title: Terminal Services Window Clipper
4 //
5 //Author: Martin Wickett
6 //
7 //Date: 2004
8 //
9 //*********************************************************************************
10
11 #ifndef __CBT_H__
12 #define __CBT_H__
13
14 #include <windows.h>
15 #include "hookdll.h"
16
17 //
18 // a wrapper class to access the WTSWinClipperdll
19 //
20 class WTSWinClipper
21 {
22 protected:
23 static HINSTANCE mCbtDllHinst;
24 static SETHOOKS mSetCbtHook;
25 static REMOVEHOOKS mRemoveCbtHook;
26 static GETINSTANCECOUNT mGetInstanceCount;
27
28 public:
29 static bool Init();
30 static void Done()
31 {
32 if (mCbtDllHinst)
33 FreeLibrary(mCbtDllHinst);
34 }
35
36 static void SetCbtHook()
37 {
38 if (mCbtDllHinst)
39 mSetCbtHook();
40 }
41
42 static void RemoveCbtHook()
43 {
44 if (mCbtDllHinst)
45 mRemoveCbtHook();
46 }
47
48 static int GetInstanceCount()
49 {
50 if (mCbtDllHinst)
51 return mGetInstanceCount();
52 else
53 return 0;
54 }
55 };
56
57 #endif

  ViewVC Help
Powered by ViewVC 1.1.26