abto VNC Viewer for Windows SDK

AbtoVNC Viewer allows connecting to AbtoVNC Server directly or via Repeater (Listen Mode II usage feature including). Our windows vnc viewer will surely work even under NAT and incorporates a set of great configuration options. It possesses HTTP proxy support as well.
Connecting Directly: For connecting our remote desktop client – VNC Viewer to VNC Server directly type “Server:” host, port (Ex. “192.168.0.7::5900”) and password of VNCServer. Then press the OK button.
Connecting via Repeater: For connection VNCViewer to VNCServer via Repeater check “Use Repeater” type “Server” host, port (Ex. “192.168.0.3::5901”) of Repeater, specific “ID” which VNCServer uses to connect to Repeater and password of VNCServer. Then press the OK button.
The repeater acts like a proxy, sitting in the middle between the server and viewer. All data for the session is passed through the repeater meaning that the viewer and server can both be behind a NAT firewall, without having to worry about forwarding ports or anything else (providing the repeater is visible to both viewer and server).

Remote desktop VNC viewer repeater mode connection

Project consists of:

  • CSharp WinForm sample SDK (VNCViewWrapper project) that contains vncclientwraplib.dll and vncviewer.dll.

CSharp sample uses vncwraplib.dll which contains of such functions:

  •  OpenConnection
  •  OpenConnectionEx
  •  CloseConnection
  •  CheckLicense
  •  CloseLisenConection

Description:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<summary>Opens connection to server </summary>
<param name="Host"></param>
<param name="Port"></param>
<param name="Password"></param>
<param name="IsListenMode">Connect to server via listen mode</param>
<param name="callback">Callback that returns one of the values of the ConnectionStatus </param>
<returns>returns one of the values of the ErrorValue and if the server starts successfully – the value of Error_None</returns>
[DllImport("vncclientwraplib.dll", CharSet = CharSet.Ansi)]
static extern bool OpenConnection(string Host, int Port, string Password,bool IsListenMode, ConnectionStatusCallback callback);
<summary>Opens connection to server via Repeater</summary>
<param name="SessionId"></param>
<param name="Password"></param>
<param name="Proxy"></param>
<param name="ProxyPort"></param>
<param name="callback">Callback that returns one of the values of the ConnectionStatus</param>
<returns>returns one of the values of the ErrorValue and if the server starts successfully – the value of Error_None</returns>
[DllImport("vncclientwraplib.dll", CharSet = CharSet.Ansi)]
static extern bool OpenConnectionEx(string SessionId, string Password, string Proxy, int ProxyPort, ConnectionStatusCallback callback);
<summary>Close connecction</summary>
[DllImport("vncclientwraplib.dll")]
static extern void CloseConnection();
<summary>Function is responsible for the registration SDK. You must use it in your program, if both username and password not specified the registration info is taken from file</summary>
<param name="username"></param>
<param name="key"></param>
<returns>Returns one of the values of the ErrorValue</returns>
[DllImport("vncclientwraplib.dll")]
static extern int CheckLicense(string username, string key);
<summary>Close listen connection</summary>       
[DllImport("vncclientwraplib.dll")]
static extern void CloseLisenConection();
enum ErrorValue
{
ERROR_NONE = 0,
ERROR_INVALID_VALUE = 1,
ERROR_CONNECTION_FAILED = 2,
ERROR_HTTP_TUNNEL_ERROR = 3,
ERROR_REQUEST_PENDING = 4,
ERROR_LICENSE_EXPIRED = 100
}
enum ConnectionStatus {
CONNECTION_STATUS_UNKNOWN = 0,
CONNECTION_STATUS_CONNECTING = 1,
CONNECTION_STATUS_CONNECTED = 2,
CONNECTION_STATUS_CONNECTION_FAILED = 3,
CONNECTION_STATUS_DISCONNECTING = 4,
CONNECTION_STATUS_DISCONNECTED = 5
}

Leave a Reply

Be the First to Comment!