是呀,我估计也取不到。只能想办法,从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;
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;
因为是在一个Process中。如果是IE,那就完了。结。