Exemplo n.º 1
0
        public RASCONNSTATE GetStatus()
        {
            if (_connection == IntPtr.Zero)
            {
                throw new RasException("The connection is not established.");
            }
            var    status = new RASCONNSTATUS();
            UInt32 result = RasNativeMethods.RasGetConnectStatus(_connection, status);

            if (result != 0)
            {
                throw new RasException(result);
            }
            return(status.rasconnstate);
        }
Exemplo n.º 2
0
 public static extern UInt32 RasGetConnectStatus(IntPtr hrasconn, [In, Out] RASCONNSTATUS lprasconnstatus);