各位大蝦
請問如何在建立RAS撥號時,勾選上WIN7上的IPV6選項
RASENTRY 'dwProtocols
這里面只有IPV4 沒有V6
uj5u.com熱心網友回復:
提上相關代碼RASENTRY rasEntry;
::ZeroMemory(&rasEntry, sizeof(rasEntry));
rasEntry.dwSize = sizeof(rasEntry);
_tcscpy(rasEntry.szLocalPhoneNumber, strPhoneNum);
// rasEntry.dwfNetProtocols = RASNP_Ip;
// rasEntry.dwfNetProtocols = rasEntry.dwfNetProtocols | RASNP_Ipv6;
rasEntry.dwFramingProtocol = RASFP_Ppp;
// DON'T USE "RASDT_Modem", use "modem", otherwise dwRV = 87
#if (WINVER >= 0x600)
rasEntry.dwfNetProtocols = rasEntry.dwfNetProtocols | RASNP_Ipv6;
MessageBox(NULL,_T("IPV6"),_T("caption"),MB_OK);
#else
rasEntry.dwfNetProtocols = RASNP_Ip;
MessageBox(NULL,_T("IPV4 6"),_T("caption"),MB_OK);
#endif
_tcscpy(rasEntry.szDeviceType, TEXT("modem"));
_tcscpy(rasEntry.szDeviceName, m_DeveiceName);
uj5u.com熱心網友回復:
#if (WINVER >= 0x600)這個一直無法實作 請問是何原因?
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/130800.html
上一篇:學演算法看什么書?
