vncproperties.h
3.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
//
// This file is part of the VNC system.
//
// The VNC system is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
//
// If the source code for the VNC system is not available from the place
// whence you received this file, check http://www.uk.research.att.com/vnc or contact
// the authors on vnc@uk.research.att.com for information on obtaining it.
// vncProperties
// Object implementing the Properties dialog for WinVNC.
// The Properties dialog is displayed whenever the user selects the
// Properties option from the system tray menu.
// The Properties dialog also takes care of loading the program
// settings and saving them on exit.
class vncProperties;
#if (!defined(_WINVNC_VNCPROPERTIES))
#define _WINVNC_VNCPROPERTIES
// Includes
// Marscha@2004 - authSSP: objbase.h needed for CoInitialize etc.
#include <objbase.h>
#include "stdhdrs.h"
#include "vncServer.h"
//#include "vncSetAuth.h"
// The vncProperties class itself
class vncProperties
{
public:
// Constructor/destructor
vncProperties();
~vncProperties();
// Initialisation
BOOL Init(vncServer *server);
// The dialog box window proc
// static BOOL CALLBACK DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
// Display the properties dialog
// If usersettings is TRUE then the per-user settings come up
// If usersettings is FALSE then the default system settings come up
// void ShowAdmin(BOOL show, BOOL usersettings);
// TRAY ICON MENU SETTINGS
BOOL AllowProperties() {return m_allowproperties;};
BOOL AllowShutdown() {return m_allowshutdown;};
BOOL AllowEditClients() {return m_alloweditclients;};
// Implementation
protected:
// The server object to which this properties object is attached.
vncServer * m_server;
// Flag to indicate whether the currently loaded settings are for
// the current user, or are default system settings
BOOL m_usersettings;
// Tray icon menu settings
BOOL m_allowproperties;
BOOL m_allowshutdown;
BOOL m_alloweditclients;
// Making the loaded user prefs active
void ApplyUserPrefs();
BOOL m_returncode_valid;
BOOL m_dlgvisible;
// STORAGE FOR THE PROPERTIES PRIOR TO APPLICATION
BOOL m_pref_SockConnect;
BOOL m_pref_AutoPortSelect;
LONG m_pref_PortNumber;
LONG m_pref_HttpPortNumber; // TightVNC 1.1.7
// char m_pref_passwd[MAXPWLEN];
UINT m_pref_QuerySetting;
UINT m_pref_QueryAccept;
UINT m_pref_QueryTimeout;
UINT m_pref_IdleTimeout;
BOOL m_pref_RemoveWallpaper;
BOOL m_pref_EnableRemoteInputs;
int m_pref_LockSettings;
BOOL m_pref_DisableLocalInputs;
// Modif sf@2002
BOOL m_pref_SingleWindow;
BOOL m_pref_EnableFileTransfer;
BOOL m_pref_EnableBlankMonitor;
int m_pref_DefaultScale;
BOOL m_pref_RequireMSLogon;
// Marscha@2004 - authSSP: added state of "New MS-Logon"
BOOL m_pref_NewMSLogon;
BOOL m_pref_UseDSMPlugin;
char m_pref_szDSMPlugin[128];
// vncSetAuth m_vncauth;
BOOL m_pref_CaptureAlphaBlending;
BOOL m_pref_BlackAlphaBlending;
char m_pref_path111[500];
private:
// void InitPortSettings(HWND hwnd); // TightVNC 1.1.7
};
#endif // _WINVNC_VNCPROPERTIES