0

The RASDIALEXTENSIONS structure defines:

fSkipPppAuth

Windows 7 or later: If this member is TRUE, then Point to Point Protocol (PPP) authentication is skipped and the value in RasDevSpecificInfo will be passed to the server for validation. Otherwise, this member is FALSE and PPP authentication proceeds normally.

RasDevSpecificInfo

Windows 7 or later: A RASDEVSPECIFICINFO structure that contains a cookie to be used for PPP authentication. This cookie is only valid if fSkipPppAuth is TRUE.

How would one go about obtaining this cookie? If I connect with the rasdial function, how can I obtain a cookie to use for future connections?

GoldieLocks
  • 845
  • 7
  • 22
  • `DWORD APIENTRY RasDialA( _In_opt_ LPRASDIALEXTENSIONS, _In_opt_ LPCSTR, _In_ LPRASDIALPARAMSA, _In_ DWORD, _In_opt_ LPVOID, _Out_ LPHRASCONN );` `_In_opt_` means this is an optional **input** parameter, with no output value. You should specfied the cookie. – Drake Wu Jan 13 '20 at 06:20
  • @DrakeWu-MSFT yes I see how to provide it, but I'm trying to find out how to obtain the cookie to pass in. How is the original cookie generated? – GoldieLocks Jan 13 '20 at 09:39
  • Check if this API is useful: [`InternetGetCookieEx`](https://learn.microsoft.com/en-us/windows/win32/api/wininet/nf-wininet-internetgetcookieexa) – Drake Wu Jan 13 '20 at 10:04

0 Answers0