Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- 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

Using 1SCDLL in C#

Post Reply
petoulachi
8
8
Posts: 20
Joined: 2007-02-18 11:22

Using 1SCDLL in C#

Post by petoulachi »

Hi,

I'm trying to make a Server within my C# code, but can't do everything i want.

Here is my sample code :

Code: Select all

[DllImport("1SCDLL.dll")]
        public static extern void Start_server(
          string ID,
          string repeater,
          string direct,
          int port,
          string password,
          bool proxy);
And the call :

Code: Select all

try
{
    VNCServer.Start_server("5487", "myrepeater.com", "", 5500, "", false);
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}
As you can see, i'm trying to connect my server in mode2 on a repeater with ID 5487, and it's work.
I see the PcHelpWare Icon on the systray while running. Is It possible to disable this Icon ?

Second question, how can I stop the server within the code too ? There is a new method called Stop_server on the latest 1SCDLL.dll, but I dont know the signature for make a call.
Last edited by petoulachi on 2007-02-19 13:11, edited 2 times in total.
SEWilson
Posts: 1
Joined: 2007-02-11 09:28
Location: California
Contact:

Re: Using 1SCDLL in C#

Post by SEWilson »

The signature for Stop_server() requires no arguments.
Post Reply