日期:2014-05-20  浏览次数:21028 次

c# 创建vpn 有谁做过?~~ ~~~
以下是我找到的一段vb   代码   本人没有学过vb   没有办法   不会把他转换过来
Private   Declare   Sub   CopyMemory   Lib   "kernel32 "   Alias   "RtlMoveMemory "   (Destination   As   Any,   Source   As   Any,  

ByVal   Length   As   Long)

Private   Type   GUID
        Data1   As   Long
        Data2   As   Integer
        Data3   As   Integer
        Data4(7)   As   Byte
End   Type

Private   Type   RASIPADDR
        a   As   Byte
        b   As   Byte
        c   As   Byte
        d   As   Byte
End   Type

Private   Type   RASENTRY
        dwSize   As   Long
        dwfOptions   As   Long
        dwCountryID   As   Long
        dwCountryCode   As   Long
        szAreaCode(10)   As   Byte
        szLocalPhoneNumber(128)   As   Byte
        dwAlternateOffset   As   Long
        ipaddr   As   RASIPADDR
        ipaddrDns   As   RASIPADDR
        ipaddrDnsAlt   As   RASIPADDR
        ipaddrWins   As   RASIPADDR
        ipaddrWinsAlt   As   RASIPADDR
        dwFrameSize   As   Long
        dwfNetProtocols   As   Long
        dwFramingProtocol   As   Long
        szScript(259)   As   Byte
        szAutodialDll(259)   As   Byte
        szAutodialFunc(259)   As   Byte
        szDeviceType(16)   As   Byte
        szDeviceName(128)   As   Byte
        szX25PadType(32)   As   Byte
        szX25Address(200)   As   Byte
        szX25Facilities(200)   As   Byte
        szX25UserData(200)   As   Byte
        dwChannels   As   Long
        dwReserved1   As   Long
        dwReserved2   As   Long
        dwSubEntries   As   Long
        dwDialMode   As   Long
        dwDialExtraPercent   As   Long
        dwDialExtraSampleSeconds   As   Long
        dwHangUpExtraPercent   As   Long
        dwHangUpExtraSampleSeconds   As   Long
        dwIdleDisconnectSeconds   As   Long
        dwType   As   Long
        dwEncryptionType   As   Long
        dwCustomAuthKey   As   Long
        guidId   As   GUID
        szCustomDialDll(259)   As   Byte