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);
Code: Select all
try
{
VNCServer.Start_server("5487", "myrepeater.com", "", 5500, "", false);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
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.