Archive Browser
Download InternetGetCookieExDemo.zip, last updated 20/01/2019 (34.92 KB)
Download- md5: e0dbdca22a22654e8d8b9bb3dd11a473
- sha1: 7fbbb05f2735750766392cca2bee4256338cf563
- sha256: 1441f79ba3e8b9d3b620dad91c3f7faa9ccafc2b3b4f227713fa03f4f53c4068
using System;
using System.Runtime.InteropServices;
using System.Text;
// Reading cookies from Internet Explorer
// https://www.cyotek.com/blog/reading-cookies-from-internet-explorer
// Copyright © 2019 Cyotek Ltd. All Rights Reserved.
// This source code is licensed under the Creative Commons Attribution 4.0 International License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
// Found this example useful?
// https://www.paypal.me/cyotek
// ReSharper disable IdentifierTypo
// ReSharper disable StringLiteralTypo
// ReSharper disable InconsistentNaming
namespace Cyotek.Demonstrations.InternetGetCookieEx
{
internal class NativeMethods
{
#region Externals
[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern bool InternetGetCookieEx(string lpszUrl, string lpszCookieName, StringBuilder lpszCookieData, ref int lpdwSize, int dwFlags, IntPtr lpReserved);
#endregion
#region Constants
public const int ERROR_INSUFFICIENT_BUFFER = 122;
public const int INTERNET_COOKIE_HTTPONLY = 0x00002000;
public const int INTERNET_COOKIE_RESTRICTED_ZONE = 0x00020000;
public const int INTERNET_COOKIE_THIRD_PARTY = 0x10;
#endregion
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate