win/Makefile
win/vncviewer/Makefile
win/rfb_win32/Makefile
+win/vncconfig/Makefile
+win/winvnc/Makefile
po/Makefile.in
])
-SUBDIRS = rfb_win32 vncviewer
+SUBDIRS = rfb_win32 vncviewer vncconfig winvnc
+EXTRA_DIST = logmessages/messages.h
}
// -=- Switch of normal wallpaper and notify apps
- SysParamsInfo(SPI_SETDESKWALLPAPER, 0, "", SPIF_SENDCHANGE);
+ SysParamsInfo(SPI_SETDESKWALLPAPER, 0, (PVOID) "", SPIF_SENDCHANGE);
restoreWallpaper = true;
} catch (rdr::Exception& e) {
ImpersonateCurrentUser icu;
vlog.debug("disable desktop pattern");
- SysParamsInfo(SPI_SETDESKPATTERN, 0, "", SPIF_SENDCHANGE);
+ SysParamsInfo(SPI_SETDESKPATTERN, 0, (PVOID) "", SPIF_SENDCHANGE);
restorePattern = true;
} catch (rdr::Exception& e) {
WMShatter.h \
WMWindowCopyRect.h
-
-## CleanDesktop.cxx not built - MinGW does not provide COM
-
librfb_win32_la_SOURCES = $(HDRS) \
AboutDialog.cxx \
CKeyboard.cxx \
+ CleanDesktop.cxx \
Clipboard.cxx \
CPointer.cxx \
CurrentUser.cxx \
pattern.replaceBuf(0);
}
bool onOk() {
- TCharArray host = getItemString(IDC_HOST_PATTERN);
+ TCharArray host(getItemString(IDC_HOST_PATTERN));
TCharArray newPat(_tcslen(host.buf)+2);
if (isItemChecked(IDC_ALLOW))
newPat.buf[0] = _T('+');
}
bool isChanged() {
try {
- CharArray new_hosts = getHosts();
- CharArray old_hosts = hosts.getData();
+ CharArray new_hosts(getHosts());
+ CharArray old_hosts(hosts.getData());
return (strcmp(new_hosts.buf, old_hosts.buf) != 0) ||
(localHost != isItemChecked(IDC_LOCALHOST)) ||
(port_number != getItemInt(IDC_PORT)) ||
DesktopPage(const RegKey& rk)
: PropSheetPage(GetModuleHandle(0), MAKEINTRESOURCE(IDD_DESKTOP)), regKey(rk) {}
void initDialog() {
- CharArray action = rfb::win32::SDisplay::disconnectAction.getData();
+ CharArray action(rfb::win32::SDisplay::disconnectAction.getData());
bool disconnectLock = stricmp(action.buf, "Lock") == 0;
bool disconnectLogoff = stricmp(action.buf, "Logoff") == 0;
typedef BOOL (WINAPI *_LockWorkStation_proto)();
case IDC_REMOVE_WALLPAPER:
case IDC_REMOVE_PATTERN:
case IDC_DISABLE_EFFECTS:
- CharArray action = rfb::win32::SDisplay::disconnectAction.getData();
+ CharArray action(rfb::win32::SDisplay::disconnectAction.getData());
bool disconnectLock = stricmp(action.buf, "Lock") == 0;
bool disconnectLogoff = stricmp(action.buf, "Logoff") == 0;
setChanged((disconnectLogoff != isItemChecked(IDC_DISCONNECT_LOGOFF)) ||
// Reformat AuthHosts to Hosts. Wish I'd left the format the same. :( :( :(
try {
- CharArray tmp = strDup(authHosts.buf);
+ CharArray tmp(authHosts.buf);
while (tmp.buf) {
// Split the AuthHosts string into patterns to match
--- /dev/null
+bin_PROGRAMS = vncconfig\r
+\r
+HDRS = Authentication.h Connections.h Desktop.h Hooking.h Inputs.h Legacy.h \\r
+ PasswordDialog.h resource.h Sharing.h\r
+\r
+vncconfig_SOURCES = $(HDRS) Legacy.cxx PasswordDialog.cxx vncconfig.cxx\r
+\r
+vncconfig_CPPFLAGS = -I$(top_srcdir)/win -I$(top_srcdir)/common\r
+\r
+vncconfig_LDADD = $(top_srcdir)/win/rfb_win32/librfb_win32.la \\r
+ $(top_srcdir)/common/rfb/librfb.la \\r
+ $(top_srcdir)/common/Xregion/libXregion.la \\r
+ $(top_srcdir)/common/network/libnetwork.la \\r
+ $(top_srcdir)/common/rdr/librdr.la -lws2_32 -lgdi32 -lversion -lole32 \\r
+ -lcomctl32 resources.o\r
+\r
+EXTRA_DIST = connected.ico vncconfig.ico vncconfig.rc vncconfig.exe.manifest\r
+\r
+resources.o: vncconfig.rc\r
+ $(WINDRES) $^ -o $@\r
vncviewer_LDFLAGS = -I$(top_srcdir)/win -mwindows
+EXTRA_DIST = vncviewer.rc vncviewer.ico cursor1.cur vncviewer.exe.manifest \
+ vncviewer.bmp toolbar.bmp
+
resources.o: vncviewer.rc
$(WINDRES) $^ -o $@
#include <winvnc/resource.h>
#include <rdr/MemInStream.h>
#include <rfb/LogWriter.h>
-#include <rfb/VNCserverST.h>
+#include <rfb/VNCServerST.h>
#include <rfb_win32/TCharArray.h>
#define strcasecmp _stricmp
--- /dev/null
+bin_PROGRAMS = winvnc4\r
+\r
+HDRS = AddNewClientDialog.h ControlPanel.h JavaViewer.h ManagedListener.h \\r
+ QueryConnectDialog.h STrayIcon.h VNCServerService.h VNCServerWin32.h \\r
+ resource.h\r
+\r
+winvnc4_SOURCES = $(HDRS) buildTime.cxx ControlPanel.cxx JavaViewer.cxx \\r
+ ManagedListener.cxx QueryConnectDialog.cxx STrayIcon.cxx \\r
+ VNCServerService.cxx VNCServerWin32.cxx winvnc.cxx\r
+\r
+winvnc4_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/win\r
+\r
+winvnc4_LDADD = $(top_srcdir)/common/rfb/librfb.la \\r
+ $(top_srcdir)/win/rfb_win32/librfb_win32.la \\r
+ $(top_srcdir)/common/Xregion/libXregion.la \\r
+ $(top_srcdir)/common/network/libnetwork.la \\r
+ $(top_srcdir)/common/rdr/librdr.la resources.o -lws2_32 -lgdi32 \\r
+ -lole32 -lcomctl32 -lversion\r
+\r
+winvnc4_LDFLAGS = -mwindows\r
+\r
+EXTRA_DIST = winvnc.rc winvnc.ico connected.ico icon_dis.ico connecte.ico \\r
+ winvnc4.exe.manifest winvnc.bmp\r
+\r
+resources.o: winvnc.rc\r
+ $(WINDRES) $^ -o $@\r
+\r
const UINT WM_SET_TOOLTIP = WM_USER + 1;
+namespace winvnc {
-class winvnc::STrayIcon : public TrayIcon {
+class STrayIcon : public TrayIcon {
public:
STrayIcon(STrayIconThread& t) : thread(t),
vncConfig(_T("vncconfig.exe"), isServiceProcess() ? _T("-noconsole -service") : _T("-noconsole")),
switch (command->dwData) {
case 1:
{
- CharArray viewer = new char[command->cbData + 1];
+ CharArray viewer(command->cbData + 1);
memcpy(viewer.buf, command->lpData, command->cbData);
viewer.buf[command->cbData] = 0;
return thread.server.addNewClient(viewer.buf) ? 1 : 0;
PostMessage(windowHandle, WM_SET_TOOLTIP, 0, 0);
}
+}
_tcscpy(toolTip.buf, prefix);
for (i=addrs.begin(); i!= addrs.end(); i=next_i) {
next_i = i; next_i ++;
- TCharArray addr = *i; // Assumes ownership of string
+ TCharArray addr(*i); // Assumes ownership of string
_tcscat(toolTip.buf, addr.buf);
if (next_i != addrs.end())
_tcscat(toolTip.buf, _T(","));
//
#include "windows.h"
+#ifndef IDC_STATIC
+#define IDC_STATIC -1
+#endif
+
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
// HTTPFILE
//
-/VNCVIEWER.JAR HTTPFILE DISCARDABLE "..\\..\\java\\src\\com\\tigervnc\\vncviewer\\VncViewer.jar"
-/INDEX.VNC HTTPFILE DISCARDABLE "index.vnc"
+//VNCVIEWER.JAR HTTPFILE DISCARDABLE "..\\..\\java\\src\\com\\tigervnc\\vncviewer\\VncViewer.jar"
+//INDEX.VNC HTTPFILE DISCARDABLE "index.vnc"
/////////////////////////////////////////////////////////////////////////////
//