Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
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
- 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

API Question

Post Reply
Queueless
Posts: 1
Joined: 2010-01-19 20:15

API Question

Post by Queueless »

Hello,

I'm hoping to incorperate PcHelpware into my company's product to do remote diagnostics and support. I've downloaded the source and I'm trying to understand how to use the API. I see that the server uses Start_server and Stop_server and nothing else.

The call to Start_server is Start_server(
ID,
client hostname,
client hoatname again, ( what is the purpose of this for a second time?)
client port,
password ( to what? proxy?),
window title?,
bool ( set to false, no indication what it's for) )

There is no return result for Start_server, so how does one find out if there's connection problems, view closing the connection?

I don't want a GUI since the product has a limited UI, but I'm not sure how to test for failures etc. Could someone provide a better description of how to use 1SCDLL.dll ?

Oh, is 1SCDLL.dll for the server and 1SCVDLL.dll for the viewer right?

Thanks for any help that you can provide.

Regards,
Dan
butathermix
Posts: 3
Joined: 2010-01-23 09:31

Re: API Question

Post by butathermix »

Hello i am trying also to use 1SCDLL.DLL in a soft which is the engine of the server of PCHW the syntax is
start_server(char *ID,char * repeater, char *direct, int port, char * passwd, bool proxy,char *classname, bool have_to_wait)

ID seems only usefull when using a repeater connexion
repeater seems to be the adress of the repeater
direct the address of the client
port the listenning port (5500 by default)
proxy if true use the proxy define in the registry
classname a label for information
have_to_wait a flag for stop_server which wait a permission before stopping if true

so with a viewer connected directly (no use of repeater) listenning on port 5500
start_server("","","myplace.dyndns.org",5500,"passwrd",false,"PH",false)
should work but no answer of the viewer
start_server("","myplace.dyndns.org","",5500,"passwrd",false,"PH",false)
i got the answer Start encryption waiting server then network stopped closing viewer
strange because i do not use repeater ?
I tried many things but always the same answer and only if put address for repeater
by using the server made by PCHelpware with the command line
-connect myplace.dyndns.org:5500 -passwd 40682260CC011947FC2D0B1A927138C5
it works fine and the viewer answer
Start encryption waiting server encryption complete
My probleme is the process of the encryption and i need some help too
butathermix
Posts: 3
Joined: 2010-01-23 09:31

Re: API Question

Post by butathermix »

so it works
start_server("","","myplace.dyndns.org",5500,"passwrd",false,"PH",false)
is correct for a direct connexion to myplace.dyndns.org on port 5500 .
but apparently you have to code in c for a best result and pass the password yet crypted like '40682260CC011947FC2D0B1A927138C5'.
coding in delphi it only works like this
start_server(string,pchar,string,integer,string,boolean,string,boolean)
if i code
start_server(pchar,pchar,pchar,integer,pchar,boolean,pchar,boolean)
always memory error
i can only declare one pchar in the function else memory error somebody can explain me ?
at last i can call pchelpware viewer from a soft without passing by the GUI
Post Reply