如果不是浏览器级别的Cookie,存在本地的文件中了。用API函数就可以取到。如果是浏览器级别的Cookie,存在内存中。能取得到吗?帮帮忙。

解决方案 »

  1.   

    估计可能性不大,出于安全原因IE不可能让你访问浏览器级别的Cookie
      

  2.   

    是呀,我估计也取不到。只能想办法,从WebBrowse中传过来吧那,如果取不出,我问一下,从IDownloadManager接口中能取到吗?我要接管IE的下载,所以需要知道Cookie等信息。    {IDownloadManager Interface}
          function Download(
             pmk: IMoniker; // Identifies the object to be downloaded
             pbc: IBindCtx; // Stores information used by the moniker to bind
             dwBindVerb: DWORD; // The action to be performed during the bind
             grfBINDF: DWORD; // Determines the use of URL encoding during the bind
             pBindInfo: PBindInfo; // Used to implement IBindStatusCallback::GetBindInfo
             pszHeaders: PWidechar; // Additional headers to use with IHttpNegotiate
             pszRedir: PWidechar; // The URL that the moniker is redirected to
             uiCP: UINT // The code page of the object's display name
             ): HRESULT; stdcall;
      

  3.   

    COOKIE可能有机会 如果让你取到SESSION就完了
      

  4.   

    如果是用WebBrowser浏览的网页,可以取到。
    因为是在一个Process中。如果是IE,那就完了。结。