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
"Simon" <(E-Mail Removed)> schrieb im Newsbeitrag
news:uRQ$(E-Mail Removed)...
> 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
>
>
>
|