Click here to Skip to main content
16,011,949 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
is their any way so that i can use team viewer virtual LAN features on my project
Posted
Comments
[no name] 8-Apr-12 15:16pm    
What did TeamViewer say when you asked them about their product?
Maciej Los 11-Apr-12 14:52pm    
bapay 11-Apr-12 16:35pm    
they said :
At the moment you use the parameters to work with TeamViewer.

Remote-Control:
teamviewer.exe -id <id> --Password <Passwort>

e.g. teamviewer.exe -i 12345678 --Password mypassword

Presentation:
teamviewer.exe -id <id> --Password <Password> -m presentation

FileTransfer
teamviewer.exe -id <id> --Password <Password> -m fileTransfer

VPN:
teamviewer.exe -id <id> --Password <Password> -m vpn
bapay 11-Apr-12 16:38pm    
----------------------------------------------------------------------
and :


Regrettably, all files and information relating to the source and ongoing software development of the TeamViewer application belong to TeamViewer GMBH and is not available.
Clifford Nelson 8-Apr-12 15:51pm    
I have been very frustrated that Microsoft is no good about packing some of the stuff they have done for uese by developers. There are a lot of great controls used in Visual Studio, and it would have been nice if they did.

1 solution

C#
Process p = new Process("teamviewer.exe -id  --Password <password> -m presentation");
ShowWindow(p.MainWindowHandle,ShowMinimized);
</password>


Get the handle for the process and minimize the window. Our way of doing it is using the WIN32 API.

C#
[DllImport("user32")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool ShowWindow(IntPtr hWnd, ShowWindowEnum flags);

private enum ShowWindowEnum{Hide = 0,
ShowNormal = 1,ShowMinimized = 2,ShowMaximized = 3,
Maximize = 3,ShowNormalNoActivate = 4,Show = 5,
Minimize = 6,ShowMinNoActivate = 7,ShowNoActivate = 8,
Restore = 9,ShowDefault = 10,ForceMinimized = 11};</pre>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900