Howdy,

I'm in a bit of a sticky situation that I hope someone can help me out,
without me having to modify any code. Failing that, some pointers as to
where to look in the RealVNC code would be handy.

I'm running two VNC servers on one machine.

One runs as a system service on the default port with authentication on
and password "foobar", and these details are stored in the Windows
Registry.

The other runs occasionally (started programmatically) using the
commandline in user mode (ie when I ^C, the process dies). It runs on a
special port (53053) and either uses no authentication, or if it uses
authentication it has its own special password.

The commandline I'm using looks like "C:\path\to\alt\vnc\winvnc4.exe
PortNumber=53053 AlwaysShared=1 IdleTimeout=0 DisableOptions=1
DisconnectClients=0 SecurityTypes=None DisplayDevice=myhostname" or
"C:\path\to\alt\vnc\winvnc4.exe PortNumber=53053 AlwaysShared=1
IdleTimeout=0 DisableOptions=1 DisconnectClients=0
PasswordFile=/path/to/password/file DisplayDevice=myhostname"

What I'm finding is that when the commandline server is run without
authentication (ie "SecurityTypes=None") it's picking up a password from
the registry and enforcing it. Also, I'm noticing that the VNC system
service is getting the PortNumber from the commandline version.

In other words, the commandline version is reading config from the
Registry and writing to it.

I was hoping that by using the commandline winvnc4.exe would use
defaults for anything not specified on the commandline and wouldn't
touch (look at or change) the Registry. Is there an easy way to enforce
this, or should I make my own version of the code that avoids the
Registry? If I have to change the code, are there any classes or modules
I should look at first (ie. an obvious severing point)?

Thanks very much in advance for your help. It doesn't sound like many
people are doing what I'm doing from a search of the mailing lists, so
any help will be very gratefully received.

Derek.

PS FYI I'm a Java developer and haven't done much C++ in a while and
haven't ever seen much win32 C++. I'm finding it interesting to read
though.

============================================================
Derek Weber                   Human Interaction Capabilities
C3I Division                              Rm: 2.H.06 205Labs
Defence Science & Technology Organisation Ph: 61 8 8259 7699
POBox 1500 Edinburgh South Australia 5111 Fx: 61 8 8259 5619
============================================================

IMPORTANT: This email remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the CRIMES
ACT 1914.  If you have received this email in error, you are requested to
contact the sender and delete the email.
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to