close down modem port?

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

Hi,

If I try to make a connection to the internet using WebRequest from PPC 2003
it connects fine through the compact flash modem. What I cannot figure out
is how to close down and disable the modem port when required. This used to
be a simple operation closing com5. Cannot work out how to do it under the
compact framework. Any ideas appreciated.

Regards,

Simon
 
Hy Simon!

We do things like that with a "wrapper dll" written in native C++.
You can do this alos with PInvoke, but for us it was much better to use
an external dll. You can do this with the "RAS API".

Enumerate the connections, find the open one and close it!

HTH

Manfred
 
Back
Top