Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static bool EnableCookies(int settingCode, int option)
- {
- if (!InternetSetOption(IntPtr.Zero, settingCode, ref option, sizeof(int)))
- {
- var ex = Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error());
- //throw ex;
- return false;
- }
- return true;
- }
- protected override void OnStartup(StartupEventArgs e)
- {
- base.OnStartup(e);
- EnableCookies(81, 1);
- }
Add Comment
Please, Sign In to add comment