Hello Group, accidentially i posted this to the vb6 group. They told me,
that this group should be the right place.
I successfully managed to dial a ras connection using RasDial() API. It
works if a user saves the credentials or when i fill the RASDIALPARAMS with
Username and Password manually. The matter is, that i need to use RasDial()
with an L2TP connection which uses a certificate. It seems that i need to
call a function called RasGetEapUserIdentity. I canīt get this working. Can
anybody
help me to translate the following things into VB.Net Framework 2.0?? I hang
around since two days and couldnīt find anything helpful. How can this be
translated into VB.Net??
typedef struct RASEAPUSERIDENTITY {
TCHAR szUserName[UNLEN + 1];
DWORD dwSizeofEapInfo;
BYTE pbEapInfo[1];
} RASEAPUSERIDENTITY;
typedef struct tagRASEAPINFO {
DWORD dwSizeofEapInfo;
BYTE* pbEapInfo;
} tagRASEAPINFO;
And
DWORD RasGetEapUserIdentity(
LPCSTR pszPhonebook,
LPCSTR pszEntry,
DWORD dwFlags,
HWND hwnd,
LPRASEAPUSERIDENTITY* ppRasEapUserIdentity
);
I spent so much time, thanks for any help!
Ciao
Andreas