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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 918 - (hide annotations)
Thu Jun 30 08:53:04 2005 UTC (18 years, 11 months ago) by astrand
File MIME type: text/plain
File size: 988 byte(s)
Imported CodeProject tswindowclipper source.

1 astrand 918 //*********************************************************************************
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     { if (mCbtDllHinst) FreeLibrary(mCbtDllHinst); }
32    
33     static void SetCbtHook()
34     { if (mCbtDllHinst) mSetCbtHook(); }
35    
36     static void RemoveCbtHook()
37     { if (mCbtDllHinst) mRemoveCbtHook(); }
38    
39     static int GetInstanceCount()
40     {
41     if (mCbtDllHinst)
42     return mGetInstanceCount();
43     else
44     return 0;
45     }
46     };
47    
48     #endif

  ViewVC Help
Powered by ViewVC 1.1.26