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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top