Sunday, May 10, 2009

I want to write a program in C# which can interface to hyperterminal. Is this possible?

You know all of Windows tools have at least one DLL or Windows Service.


just you should find DLLs or Windows Services that hyper terminal uses them.


in your project reference them via "AddReference", then use the methods and functions of them.





You can search for the dll at "assembley" folder of your windows path

I want to write a program in C# which can interface to hyperterminal. Is this possible?
One way i have done to communicate with hyperterminal is to invoke the use of Win32 APIs...Depending on what you want to do with hyperterminal you may have to actually "inject" a DLL into its running process so that your DLL can have funn access to hyperterminal. However, if you just need to do certain types of actions you may not need to inject and can just invoke Win32 Apis directly from your other C# program..





To get access to Win32 Apis you need to check up a think called "P/Invoke" ... I've found that if i need to inject my DLL though i would find it easier to use C++ and comminucate with it using C# (while the DLL was injected) through a special Windows Message to communicate between apps...cant recall its "WM_" constant though...
Reply:the question is, why would you want to talk to hyperterminal. you can use .net's implementation of TAPI to use a modem programatically.





or you can use System.Net.Socket to talk to a telnet shell.





Makes no sense to use interop/pinvoke when you can code it the .Net way.


No comments:

Post a Comment