Code: Select all
"C:\Program Files\uvnc bvba\UltraVNC\winvnc.exe" -connect dave.idp.it
Code: Select all
"C:\Program Files\uvnc bvba\UltraVNC\winvnc.exe" -connect dave.idp.it
Code: Select all
-connect myrepeater.com:5500 -autoreconnect -id:1234 -run
Code: Select all
UltraVNC.ini
[admin]
...
service_commandline=-connect dave.idp.it
...
Code: Select all
winvnc.exe -run
winvnc.exe -connect myrepeater.com:5500 -autoreconnect -id:1234
Code: Select all
winvnc.exe -connect myrepeater.com:5500 -autoreconnect -id:1234 -multi -run
Code: Select all
vncservice.cpp
extern BOOL SPECIAL_SC_EXIT;
extern BOOL SPECIAL_SC_PROMPT;
extern BOOL multi;
in6_addr G_LPARAM_IN6;
........
PostToWinVNC(UINT message, WPARAM wParam, LPARAM lParam)
{
// Locate the hidden WinVNC menu window
// adzm 2010-02-10 - If we are in SC mode, then we know we want to only post messages to our own instance. This prevents
// conflicts if the user already has another copy of a WinVNC-derived application running.
if (multi || SPECIAL_SC_EXIT || SPECIAL_SC_PROMPT) {
return PostToThisWinVNC(message, wParam, lParam);
}
//adzm 2010-02-10 - Finds the appropriate VNC window
HWND hservwnd = FindWinVNCWindow(false);
if (hservwnd == NULL)
return FALSE;
// Post the message to WinVNC
PostMessage(hservwnd, message, wParam, lParam);
return TRUE;
}
Code: Select all
vncservice.cpp
extern BOOL SPECIAL_SC_EXIT;
extern BOOL SPECIAL_SC_PROMPT;
in6_addr G_LPARAM_IN6;
.........
PostToWinVNC(UINT message, WPARAM wParam, LPARAM lParam)
{
// Locate the hidden WinVNC menu window
// adzm 2010-02-10 - If we are in SC mode, then we know we want to only post messages to our own instance. This prevents
// conflicts if the user already has another copy of a WinVNC-derived application running.
if (SPECIAL_SC_EXIT || SPECIAL_SC_PROMPT) {
return PostToThisWinVNC(message, wParam, lParam);
}
//adzm 2010-02-10 - Finds the appropriate VNC window
HWND hservwnd = FindWinVNCWindow(false);
if (hservwnd == NULL)
return FALSE;
// Post the message to WinVNC
PostMessage(hservwnd, message, wParam, lParam);
return TRUE;
}
But it has always worked and changing behaviour out of the blue breaks any use case for this function.Rudi De Vos wrote: The problem is also a security issue. Do you allow a normal program winvnc.exe started from commandline without any security level to control a service running at the higher security leven !!!
If this is a change in the OS why does it work correctly with previous versions and not with with recent ones?MS blocked the connection from normal apps to services. This is a change in the OS not a vnc change.
This is a OS options UAC... that protect possible unwated application todo nasty things. It's not recommended to disable it.
Code: Select all
"C:\Program Files\uvnc bvba\UltraVNC\winvnc.exe" -connect myaddress.com::5999
Code: Select all
pfnFilter =(CHANGEWINDOWMESSAGEFILTER)GetProcAddress(hUser32,"ChangeWindowMessageFilter");
if (pfnFilter)
{ //pfnFilter(MENU_ADD_CLIENT_MSG, MSGFLT_ADD);
//pfnFilter(MENU_ADD_CLIENT_MSG_INIT, MSGFLT_ADD);