CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/vncdll/winvnc/VNCHooks/VNCHooks.h
Views: 11783
1
/////////////////////////////////////////////////////////////////////////////
2
// RFB LIBRARY / VNC Hooks library
3
//
4
// WinVNC uses this DLL to hook into the system message pipeline, allowing it
5
// to intercept messages which may be relevant to screen update strategy
6
//
7
// This library was originally created using MFC as RFBLib.dll, on
8
// 8/8/97 WEZ
9
// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
10
//
11
// This file is part of the VNC system.
12
//
13
// The VNC system is free software; you can redistribute it and/or modify
14
// it under the terms of the GNU General Public License as published by
15
// the Free Software Foundation; either version 2 of the License, or
16
// (at your option) any later version.
17
//
18
// This program is distributed in the hope that it will be useful,
19
// but WITHOUT ANY WARRANTY; without even the implied warranty of
20
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
// GNU General Public License for more details.
22
//
23
// You should have received a copy of the GNU General Public License
24
// along with this program; if not, write to the Free Software
25
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
26
// USA.
27
//
28
// TightVNC distribution homepage on the Web: http://www.tightvnc.com/
29
//
30
// If the source code for the VNC system is not available from the place
31
// whence you received this file, check http://www.uk.research.att.com/vnc or contact
32
// the authors on [email protected] for information on obtaining it.
33
34
// VNC Hooks library
35
//
36
// This version created:
37
// 24/11/97
38
39
#if !defined(_VNCHOOKS_DLL_)
40
#define _VNCHOOKS_DLL_
41
42
#include <windows.h>
43
44
/////////////////////////////////////////////////////////////////////////////
45
// Define the import/export tags
46
47
#define DllImport __declspec(dllimport)
48
#define DllExport __declspec(dllexport)
49
50
/////////////////////////////////////////////////////////////////////////////
51
//
52
// Functions used by WinVNC
53
54
extern "C"
55
{
56
// DLL functions:
57
DllExport BOOL SetHook(
58
HWND hWnd,
59
UINT UpdateMsg,
60
UINT CopyMsg,
61
UINT MouseMsg
62
); // Set the hook
63
DllExport BOOL UnSetHook(HWND hWnd); // Remove it
64
65
// Control keyboard filtering
66
DllExport BOOL SetKeyboardFilterHook(BOOL activate);
67
// Control mouse filtering
68
DllExport BOOL SetMouseFilterHook(BOOL activate);
69
// hooks for Local event priority impl. (win9x)
70
DllExport BOOL SetKeyboardPriorityHook(HWND hwnd, BOOL activate,UINT LocalMsg);
71
DllExport BOOL SetMousePriorityHook(HWND hwnd, BOOL activate,UINT LocalMsg);
72
// hooks for Local event priority impl. (winNT)
73
DllExport BOOL SetKeyboardPriorityLLHook(HWND hwnd, BOOL activate,UINT LocalMsg);
74
DllExport BOOL SetMousePriorityLLHook(HWND hwnd, BOOL activate,UINT LocalMsg);
75
76
}
77
78
#endif // !defined(_VNCHOOKS_DLL_)
79
80