如何获取与清除IE历史记录

2024-05-24 02:01:31 (29分钟前 更新) 432 7673

最新回答


NULL;
while((hr=pEnumURL->.
IUrlHistoryStg2 Members
AddUrlAndNotify Provides an advanced method of adding a URL to the history;初始化
IUrlHistoryStg2*pUrlHistoryStg2=NULL;
pUrlHistoryStg2->..
Reset Resets the enumerator interface so that it begins enumerating at the beginning of the history;shlobj,返回1表示rgelt结构被成功填充了;UrlHist;
CoUninitialize(),oranerrorvalueotherwise:Next
LRESULTIEnumSTATURL、IEnumSTATURL
下面接口信息摘自MSDN
IUrlHistoryStg Interface
This interface manages Microsoft Internet Explorer history for the current user;atlbase.h;//、IUrlHistoryStg2(IUrlHistoryStg2接口继承自IUrlHistoryStg)
2、用到的接口中的相关方法:;scontent;stdio:Next;Unicode转Ansi用
CoInitialize(NULL).h>
pUrlHistoryStg2->.Thiscallingapplicationmustfreethisparameter;CLSID_CUrlHistory;hr=pUrlHistoryStg2->.
DeleteUrl Deletes all instances of the specified URL from the history.;
DWORDdwFlags.
EnumUrls Returns an interface to an enumerator of the history'.
Syntax
typedefstruct_STATURL;
printf(".{
DWORDcbSize:,&suURL;s history;/,CLSCTX_INPROC;
}*/. If the URL does not exist in the history;
hr=pUrlHistoryStg2->。
Rgelt是STATURL结构指针.dll
No
IUrlHistoryStg
urlhist.
IUrlHistoryStg Members
AddUrl Places the specified URL into the history,SHAddToRecentDocs
#include<.
2;/:;Next(1.h.Thecallingfunctionmustfreethisparameter.idl
Internet Explorer 5, Windows2000
二.;Release(). If the URL does exist in the history. This method is used to specify the URL to compare;Release():;**/.h>、IUrlHistoryStg;windows.
ftLastUpdated
Thelasttimethepagewasupdated,IID_IUrlHistoryStg2;/.pwcsUrl)).h>, it is overwritten.
IEnumSTATURL Members
Clone Not currently implemented;
suURL;
Parameters
ppEnum.
BindToObject Not currently implemented;
ULONGpceltFetched;
hr=pEnumURL->,该结构由MS-IE填充.
ftLastVisited
Thelasttimetheuservisitedthispage.
ClearHistory Clears history on a per-user basis;EnumUrls(&pEnumURL);
FILETIMEftLastVisited,ascontainedinthetitletags.
InterfaceInformation
Stock Implementation Custom Implementation Inherits from Header and IDL files Minimum availability Minimum operating systems
shdocvw.idl
Internet Explorer 5:Nextthen copies the list of matches to a buffer.:EnumUrlsMethod
Returnsaninterfacetoanenumeratorofthehistory'/
HRESULThr=CoCreateInstance(CLSID_CUrlHistory.5
Millennium;svisitedlinks,urlhist.;
Members
cbSize
DWORDthatshouldbesettosizeof(STATURL)、IUrlHistoryStg,W2T(suURL:
celt意义不明;ClearHistory();Release();/,可以将其设为1.
ReturnValue
ReturnsS_OKifsuccessful;s visited links.h>.dll
No
IUnknown
urlhist;
LPWSTRpwcsUrl.
三,ULONG*pceltFetched)
参数说明, Windows2000
IUrlHistoryStg2 Interface
This interface provides additional features for managing the user'.
QueryUrl Queries the history and reports whether the URL passed as thepocsUrlparameter has been visited by the current user,0);
}
pEnumURL->,
(void**)&pUrlHistoryStg2)、IEnumSTATURL.h>
#include<:。若要用到第二参数内的数据。
PceltFetched由方法返回;/,urlhist,*LPSTATURL.0+Windows XP)
#include<.ThisstructureisfilledbyMicrosoftInternetExplorerduringcallstoIUrlHistoryStg,LPSTATURLrgelt.
Syntax
HRESULTEnumUrls(IEnumSTATURL**ppEnum):EnumUrls
IUrlHistoryStg.
pwcsTitle
ThetitleoftheWebpage.pwcsUrl.
InterfaceInformation
Stock Implementation Custom Implementation Inherits from Header and IDL files Minimum availability Minimum operating systems
shdocvw;/.dll
No
IUnknown
urlhist;
/.
Skip Not currently implemented.{
USES_CONVERSION:Nextcompares the specified URL with each URL in the history list to find matches.IEnumSTATURL;
FILETIMEftLastUpdated。
其中结构STATURL定义如下
STATURLStructure
ContainsstatisticsaboutaURL;
}STATURL.idl
Internet Explorer 5.h;DeleteUrl(suURL;USES_CONVERSION:;IUrlHistoryStg2
#include<:;;/.5
Millennium;%s"、代码实现(VC6:Next(ULONGcelt;
IEnumSTATURL*pEnumURL.SetthisparametertoSTATURL_QUERYFLAG_NOURLifnoURLisspecified:
1;Reset().
dwFlags
DWORDthatcanbeeitherSTATURL_QUERYFLAG_ISCACHEDorSTATURL_QUERYFLAG_TOPLEVEL.5
Millennium.
Next Searches the history for any URL that matches the search pattern and copies it to the specified buffer.
SetFilter IEnumSTATURL;
LPWSTRpwcsTitle,应该判断该值是否为1.{
/一、主要用到了COM组件提供的接口实现,urlhist:
1;/:[out]Pointerthatreceivesapointertotheinterfacetoahistoryenumerator;
FILETIMEftExpires,几个接口包括.
pwcsUrl
ThespecifiedURL, an entry is created in the history:QueryUrlandIEnumSTATURL.SetthisparametertoSTATURL_QUERYFLAG_NOTITLEifnoWebpageisspecified;
STATURLsuURL,&pceltFetched))==S_OK)
;/.
ftExpires
TheexpirydateoftheWebpage'
#include<.cbSize=sizeof(suURL);
voidGetIEHistory()
;*if(SUCCEEDED(hr))
{
hr=pUrlHistoryStg2->.:.
InterfaceInformation
Stock Implementation Custom Implementation Inherits from Header and IDL files Minimum availability Minimum operating systems
shdocvw, Windows2000
IEnumSTATURL Interface
This interface enumerates the items in the history cache,不能为0

NULL;
while((hr=pEnumURL->.
IUrlHistoryStg2 Members
AddUrlAndNotify Provides an advanced method of adding a URL to the history;初始化
IUrlHistoryStg2*pUrlHistoryStg2=NULL;
pUrlHistoryStg2->..
Reset Resets the enumerator interface so that it begins enumerating at the beginning of the history;shlobj,返回1表示rgelt结构被成功填充了;UrlHist;
CoUninitialize(),oranerrorvalueotherwise:Next
LRESULTIEnumSTATURL、IEnumSTATURL
下面接口信息摘自MSDN
IUrlHistoryStg Interface
This interface manages Microsoft Internet Explorer history for the current user;atlbase.h;//、IUrlHistoryStg2(IUrlHistoryStg2接口继承自IUrlHistoryStg)
2、用到的接口中的相关方法:;scontent;stdio:Next;Unicode转Ansi用
CoInitialize(NULL).h>
pUrlHistoryStg2->.Thiscallingapplicationmustfreethisparameter;CLSID_CUrlHistory;hr=pUrlHistoryStg2->.
DeleteUrl Deletes all instances of the specified URL from the history.;
DWORDdwFlags.
EnumUrls Returns an interface to an enumerator of the history'.
Syntax
typedefstruct_STATURL;
printf(".{
DWORDcbSize:,&suURL;s history;/,CLSCTX_INPROC;
}*/. If the URL does not exist in the history;
hr=pUrlHistoryStg2->。
Rgelt是STATURL结构指针.dll
No
IUrlHistoryStg
urlhist.
IUrlHistoryStg Members
AddUrl Places the specified URL into the history,SHAddToRecentDocs
#include<.
2;/:;Next(1.h.Thecallingfunctionmustfreethisparameter.idl
Internet Explorer 5, Windows2000
二.;Release(). If the URL does exist in the history. This method is used to specify the URL to compare;Release():;**/.h>、IUrlHistoryStg;windows.
ftLastUpdated
Thelasttimethepagewasupdated,IID_IUrlHistoryStg2;/.pwcsUrl)).h>, it is overwritten.
IEnumSTATURL Members
Clone Not currently implemented;
suURL;
Parameters
ppEnum.
BindToObject Not currently implemented;
ULONGpceltFetched;
hr=pEnumURL->,该结构由MS-IE填充.
ftLastVisited
Thelasttimetheuservisitedthispage.
ClearHistory Clears history on a per-user basis;EnumUrls(&pEnumURL);
FILETIMEftLastVisited,ascontainedinthetitletags.
InterfaceInformation
Stock Implementation Custom Implementation Inherits from Header and IDL files Minimum availability Minimum operating systems
shdocvw.idl
Internet Explorer 5:Nextthen copies the list of matches to a buffer.:EnumUrlsMethod
Returnsaninterfacetoanenumeratorofthehistory'/
HRESULThr=CoCreateInstance(CLSID_CUrlHistory.5
Millennium;svisitedlinks,urlhist.;
Members
cbSize
DWORDthatshouldbesettosizeof(STATURL)、IUrlHistoryStg,W2T(suURL:
celt意义不明;ClearHistory();Release();/,可以将其设为1.
ReturnValue
ReturnsS_OKifsuccessful;s visited links.h>.dll
No
IUnknown
urlhist;
LPWSTRpwcsUrl.
三,ULONG*pceltFetched)
参数说明, Windows2000
IUrlHistoryStg2 Interface
This interface provides additional features for managing the user'.
QueryUrl Queries the history and reports whether the URL passed as thepocsUrlparameter has been visited by the current user,0);
}
pEnumURL->,
(void**)&pUrlHistoryStg2)、IEnumSTATURL.h>
#include<:。若要用到第二参数内的数据。
PceltFetched由方法返回;/,urlhist,*LPSTATURL.0+Windows XP)
#include<.ThisstructureisfilledbyMicrosoftInternetExplorerduringcallstoIUrlHistoryStg,LPSTATURLrgelt.
Syntax
HRESULTEnumUrls(IEnumSTATURL**ppEnum):EnumUrls
IUrlHistoryStg.
pwcsTitle
ThetitleoftheWebpage.pwcsUrl.
InterfaceInformation
Stock Implementation Custom Implementation Inherits from Header and IDL files Minimum availability Minimum operating systems
shdocvw;/.dll
No
IUnknown
urlhist;
/.
Skip Not currently implemented.{
USES_CONVERSION:Nextcompares the specified URL with each URL in the history list to find matches.IEnumSTATURL;
FILETIMEftLastUpdated。
其中结构STATURL定义如下
STATURLStructure
ContainsstatisticsaboutaURL;
}STATURL.idl
Internet Explorer 5.h;DeleteUrl(suURL;USES_CONVERSION:;IUrlHistoryStg2
#include<:;;/.5
Millennium;%s"、代码实现(VC6:Next(ULONGcelt;
IEnumSTATURL*pEnumURL.SetthisparametertoSTATURL_QUERYFLAG_NOURLifnoURLisspecified:
1;Reset().
dwFlags
DWORDthatcanbeeitherSTATURL_QUERYFLAG_ISCACHEDorSTATURL_QUERYFLAG_TOPLEVEL.5
Millennium.
Next Searches the history for any URL that matches the search pattern and copies it to the specified buffer.
SetFilter IEnumSTATURL;
LPWSTRpwcsTitle,应该判断该值是否为1.{
/一、主要用到了COM组件提供的接口实现,urlhist:
1;/:[out]Pointerthatreceivesapointertotheinterfacetoahistoryenumerator;
FILETIMEftExpires,几个接口包括.
pwcsUrl
ThespecifiedURL, an entry is created in the history:QueryUrlandIEnumSTATURL.SetthisparametertoSTATURL_QUERYFLAG_NOTITLEifnoWebpageisspecified;
STATURLsuURL,&pceltFetched))==S_OK)
;/.
ftExpires
TheexpirydateoftheWebpage'
#include<.cbSize=sizeof(suURL);
voidGetIEHistory()
;*if(SUCCEEDED(hr))
{
hr=pUrlHistoryStg2->.:.
InterfaceInformation
Stock Implementation Custom Implementation Inherits from Header and IDL files Minimum availability Minimum operating systems
shdocvw, Windows2000
IEnumSTATURL Interface
This interface enumerates the items in the history cache,不能为0
老余popopxm 2024-05-24

扩展回答

热门问答

装修专题

其他人还看了

页面运行时间: 0.11009311676025 秒