Chris
Mon Nov 29 13:50:24 CST 2004
Hi,
I do not know about achieving this from WMI, I am sure it can be done. From
the windows API you should take a look at RasDial, RasEnumConnections and
RasConnectionNotification, these should provide the functionality you are
looking for,
Hope this helps
--
Chris Taylor
http://dotnetjunkies.com/weblog/chris.taylor
"Brad" <bradleyj68@newsgroup.nospam> wrote in message
news:D7C5EBB1-E103-4C85-85C5-EC9409153640@microsoft.com...
> I am writing a smart client application that needs to monitor the users
> dial-up connection status. If the user disconnects, I need to prompt them
to
> reconnect, or quit the application. I tried using the following WMI query
>
> wmiDialupDisconnect = New ManagementEventWatcher("SELECT * FROM
> MSNDIS_NotifyAdapterRemoval")
>
> but it does not work. Does anyone have any ideas how I can monitor a
users
> dial-up connection status?
>