Thanx, but it isn't what I ask. There is state "Work Offline" when you open
Internet Explorer and select File -> Work offline in menu (and there is
check mark, if you are really working offline). I don't have RAS installed,
but I'm still able set offline status using this command.
In future, I wish to set this state from my application.
Quote:
> Hi,
> If you want to get the online status (whether connected or not connected)
> of a dial-up (RAS) connetion, you can use the RasGetConnectStatus()
> RasGetConnectStatus(HRASCONN hrasconn, LPRASCONNSTATUS rasStatus)
> The first parameter is the handle for the RAS connection, you can get this
> handle either through RasDial or RasEnumConnection. You can get the online
> status from the second parameter. If (rasStatus.rasconnstate ==
> RASCS_Connected), then you are connected.
> For detailed information, please refer to MSDN.