Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/136.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ IE 11访问cookie的增强保护模式_C++_Internet Explorer_Cookies_Add On_Bho - Fatal编程技术网

C++ IE 11访问cookie的增强保护模式

C++ IE 11访问cookie的增强保护模式,c++,internet-explorer,cookies,add-on,bho,C++,Internet Explorer,Cookies,Add On,Bho,根据本文,增强保护模式不提供访问cookie的API 最近,我的获取cookies的代码,使用InternetGetCookieEx,在IE 10和更早版本中工作,在Win 8.1/IE 11中停止工作 是否有API或其他方式来读取和写入IE 11中的Cookie 我想读取会话cookie并编写持久cookie 谢谢 我应该提到,使用InternetGetCookieEx的程序在IE进程之外运行,并在DWebBrowserEvents2事件处理程序中读取/写入Cookie。InternetGe

根据本文,增强保护模式不提供访问cookie的API

最近,我的获取cookies的代码,使用InternetGetCookieEx,在IE 10和更早版本中工作,在Win 8.1/IE 11中停止工作

是否有API或其他方式来读取和写入IE 11中的Cookie

我想读取会话cookie并编写持久cookie

<我的代码是C++的,但是我很愿意使用其他语言。< /P>
谢谢

我应该提到,使用InternetGetCookieEx的程序在IE进程之外运行,并在DWebBrowserEvents2事件处理程序中读取/写入Cookie。InternetGetCookieEx API适用于大多数IE版本,但显然由于增强的保护模式,它在IE 11中不再可靠,因此我需要找到另一种方法。我正在考虑使用IHTMLDocument2 get_cookie&set_cookie。有人用这种方式访问cookie时遇到问题吗?IHTMLDocument2 get_cookie对我有效,即使使用Win10和IE11,而InternetGetCookieEx和IEGetProtectedModeCookie则不起作用,两者都会返回错误259。