-
T*OMNLA에서 PPP 연결...공장 이야기 2009. 10. 30. 16:07
T*OMNLA에서 PPP 연결이 필요 해서 이전(Windows Mobile에서 PPP 연결...) 방법을 사용 해봤어나 안되는 것이다... 이유가 뭘까 고민 하든중 시간은 없고 해서 다시 구글링...
CONNMGR_CONNECTIONINFO tagConnInfo;
GUID guidDestNet;
DWORD dwIndex = 0;
DWORD dwStatus = 0;
HRESULT hrConnSync = 0;ConnMgrMapURL(L"http://www.msn.com", &guidDestNet, &dwIndex);
ZeroMemory(&tagConnInfo, sizeof(CONNMGR_CONNECTIONINFO));
tagConnInfo.cbSize = sizeof(CONNMGR_CONNECTIONINFO);
tagConnInfo.dwParams = CONNMGR_PARAM_GUIDDESTNET;
tagConnInfo.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE;
tagConnInfo.bExclusive = false;
tagConnInfo.bDisabled = false;
tagConnInfo.dwFlags = 0;
tagConnInfo.guidDestNet = guidDestNet;
tagConnInfo.hWnd = NULL;
tagConnInfo.lParam = 0;dwStatus = CONNMGR_STATUS_CONNECTED;
hrConnSync = ConnMgrEstablishConnectionSync(&tagConnInfo, &g_PPPConnection, 15000, &dwStatus);if(hrConnSync != S_OK)
return FALSE;
else
return TRUE;위와 같이 하면 되는데 이유는 아직 모름...
요즘 다시 월화수목금금금 모드... ㅡ,ㅡ;;;
'공장 이야기' 카테고리의 다른 글
Stack fault 와 Stack overflow (0) 2009.12.15 아 지롤 같은 Data Abort... (0) 2009.11.23 SIP 설정하기 (0) 2009.10.12 자주 사용하는 메크로... (0) 2009.09.30 Windows Mobile에서 유니코드 변환 (0) 2009.09.29