/[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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 933 by astrand, Thu Jun 30 14:46:14 2005 UTC revision 937 by astrand, Fri Jul 1 06:50:52 2005 UTC
# Line 14  Line 14 
14  #include <windows.h>  #include <windows.h>
15  #include "hookdll.h"  #include "hookdll.h"
16    
17  //  //
18  // a wrapper class to access the WTSWinClipperdll  // a wrapper class to access the WTSWinClipperdll
19  //  //
20  class WTSWinClipper  class WTSWinClipper
21  {  {
22    protected:      protected:
23      static HINSTANCE mCbtDllHinst;          static HINSTANCE mCbtDllHinst;
24      static SETHOOKS mSetCbtHook;          static SETHOOKS mSetCbtHook;
25      static REMOVEHOOKS mRemoveCbtHook;          static REMOVEHOOKS mRemoveCbtHook;
26      static GETINSTANCECOUNT mGetInstanceCount;          static GETINSTANCECOUNT mGetInstanceCount;
27    
28    public:      public:
29      static bool Init();          static bool Init();
30      static void Done()          static void Done()
31      {          {
32          if (mCbtDllHinst)              if (mCbtDllHinst)
33              FreeLibrary(mCbtDllHinst);                  FreeLibrary(mCbtDllHinst);
34      }          }
35    
36      static void SetCbtHook()          static void SetCbtHook()
37      {          {
38          if (mCbtDllHinst)              if (mCbtDllHinst)
39              mSetCbtHook();                  mSetCbtHook();
40      }          }
41    
42      static void RemoveCbtHook()          static void RemoveCbtHook()
43      {          {
44          if (mCbtDllHinst)              if (mCbtDllHinst)
45              mRemoveCbtHook();                  mRemoveCbtHook();
46      }          }
47    
48      static int GetInstanceCount()          static int GetInstanceCount()
49      {          {
50          if (mCbtDllHinst)              if (mCbtDllHinst)
51              return mGetInstanceCount();                  return mGetInstanceCount();
52          else              else
53              return 0;                  return 0;
54      }          }
55  };  };
56    
57  #endif  #endif

Legend:
Removed from v.933  
changed lines
  Added in v.937

  ViewVC Help
Powered by ViewVC 1.1.26