abdul_owiusa,
I can work with ports in MS ASSEMBLY(in win98,win95,DOS),I dont know it in C++,
but in C++ you can call your Assembly program and use it....
I mean,ports like LPT or COM or USB or KeyBoard or Speaker....
first you should find the address in your memory for SMTP port25 then you can read and write(with IN/OUT assembly instruction)...
I think if you try it with .NET you can find better and more Helps and resource
like
http://www.scientificcomponent.com/p...controller.htm
also I think
Nikolai in C++Programming forum could help you more.
HTH.
--------------------------------------------
Mehdi.:)