인터넷 접속을 통한 자동 접속 방법 1 [using System.Net;] webreq = System.Net.WebRequest.Create(url); bool success = false; |
그리고 요청 사항이였던 이넘 ;;
OpenNETCF <-- 설치해야 한다.
http://opennetcf.com/ 에서 다운 받으면 됨
private void typeConnection(string typeName) { DestinationInfoCollection DIC = connMgr.EnumDestinations(); try { foreach (DestinationInfo di in DIC) { if (di.Description == "The Internet") // (di.Description == typeName) { connMgr.Connect(di.Guid, true, ConnectionMode.Asynchronous); } } } catch (Exception er) { MessageBox.Show(er.ToString()); } } |
AdapterCollection adapters = Networking.GetAdapters(); foreach (Adapter adapter in adapters) ConnectionManager connMgr = new ConnectionManager(); bool connected = false;
|