Home > Back-end >  VC programming IPV6 option selected
VC programming IPV6 option selected

Time:10-13

Each prawn

Excuse me, how to establish the RAS dial-up, check on the Windows 7 on IPV6 options
RASENTRY 'dwProtocols
It only IPV4 no V6

CodePudding user response:

On the relevant code
RASENTRY RASENTRY;
: : ZeroMemory (& amp; 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 & gt;=0 x600)
RasEntry) dwfNetProtocols=rasEntry) dwfNetProtocols | RASNP_Ipv6;
MessageBox (NULL, _T (" IPV6 "), _T (" caption "), MB_OK);
# the 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);

CodePudding user response:

# if (WINVER & gt;=0 x600)

It has been unable to achieve what is why?
  • Related