After more 2 000 000 (two million) views on forum for 1.5.0.x development versions... and 1.6.1.0, 1.6.3.0-dev versions
A new stable version, UltraVNC 1.6.4.0 and UltraVNC SC 1.6.4.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38095
Feedback is always welcome

2025-12-05: Celebrating the 23th anniversary of the UltraVNC (26th anniversary since the laying of the foundation stone): https://forum.uvnc.com/viewtopic.php?t=38130

2025-12-03: Could you please complete our poll/survey? Renaming UltraVNC files and service to be more clear: https://forum.uvnc.com/viewtopic.php?t=38128
There was a problem to vote, it is solved now! Thanks in advance!

2025-12-02: We need help: English Wikipedia UltraVNC page has been requested to deletion: https://forum.uvnc.com/viewtopic.php?t=38127
Any help is welcome to improve the UltraVNC page and/or to comment on the Wikipedia Talk page

2025-05-06: Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078

2023-09-21: Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Development: UltraVNC development is always here... Any help is welcome
Feedback is welcome

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Change service_name of uvnc server in service mode

Developers may discuss here
Post Reply
Thohoj
Posts: 4
Joined: 2016-06-30 08:13

Change service_name of uvnc server in service mode

Post by Thohoj »

Hi,

I need to change the service name when registering the uvnc as a windows service.

I've found this in the changelog (http://www.uvnc.com/general/whatsnew.html):
- You can now register the service with a custom name.
But I cannot find any option to do this. Looking at the current code, the service_name variable seems not to be changed anywhere from "uvnc_service" in anything else. Am I missing something? Is it possible to change the service name (without prior installing it and then change it via editing the registry)?

Regards
Thorsten
Thohoj
Posts: 4
Joined: 2016-06-30 08:13

Re: Change service_name of uvnc server in service mode

Post by Thohoj »

I found the solution in the source code:

winvnc.cpp / WinMain(...)

Code: Select all

				
// rest of command line service name, if provided.
char *pServiceName = &szCmdLine[i];
...
// if a service name is supplied, and it differs except in case from
// the default, use the supplied service name instead
if (*pServiceName && (_strcmpi(pServiceName, service_name) != 0))
{
  strncpy(service_name, pServiceName, 256);
  service_name[255] = 0;
}
...
One can choose an alternative service name by calling

Code: Select all

winvnc.exe -install <service_name>
"-install <service_name>" should be the last command line parameter.

But I could not get two instances of winvnc services running in parallel.
Post Reply