I had a question.
Just say I had 2 PCs.
a window service called RemoteFireService is running behind. When PC A receive the command (example, "dir") from PC B, it will fire this command "dir" to PC B.
a window service called RemoteGetCommandService is running behind. This service will get this current PC commands and call a web service (return a string) back to PC A.
Okay, should i be using WMI to do this or Win32 API?
I am using C#.NET, and I need some guidance. I know how to do web services and calling wmi remotely.
Do i need to create my own telnet?
Open a listening socket.. opening a active socket.. connect A to B, send command.. receive, interpret. etc
I think your over-complicating it. There is no need to dabble in the Win32 API for THIS project as that is all handled for you by .NET. And no, you don't need to make a new 'telnet', just handle strings well and don't forget about 13 + 10.
Thanks for the recommendation. I heard of Ingo Rammer from other friends.
I can open a listening sockets in a window service? You sure?
Yes. I'm sure. Windows services are the same as any standard windows executable except with a few added event handlers etc.