borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Overloading Button click event)Next Topic (MSHTML) New Topic New Poll Post Reply
AndreaVB Forum : Internet Applications : Internet History
Poster Message
JustinTIme
Level: Guest


icon Internet History

here is a tricky one
does anyone now how to remove pages from your internet history? or even where i should start looking,  if it is possible to do that is

thanks

07-12-2002 at 05:26 AM
| Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: Internet History

It uses the following API's (for IE):


    Private Declare Function FindFirstUrlCacheEntry Lib "Wininet.dll" Alias "FindFirstUrlCacheEntryA" (ByVal lpszUrlSearchPattern As String, lpFirstCacheEntryInfo As Any, lpdwFirstCacheEntryInfoBufferSize As Long) As Long

    Private Declare Function FindNextUrlCacheEntry Lib "Wininet.dll" Alias "FindNextUrlCacheEntryA" (ByVal hEnumHandle As Long, lpNextCacheEntryInfo As Any, lpdwNextCacheEntryInfoBufferSize As Long) As Long

    Private Declare Function FindCloseUrlCache Lib "Wininet.dll" (ByVal hEnumHandle As Long) As Long

    Private Declare Function DeleteUrlCacheEntry Lib "Wininet.dll" Alias "DeleteUrlCacheEntryA" (ByVal lpszUrlName As String) As Long

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal dwLength As Long)

    Private Declare Function lstrcpyA Lib "kernel32" (ByVal RetVal As String, ByVal Ptr As Long) As Long

    Private Declare Function lstrlenA Lib "kernel32" (ByVal Ptr As Any) As Long

    Private Declare Function LocalAlloc Lib "kernel32" (ByVal uFlags As Long, ByVal uBytes As Long) As Long

    Private Declare Function LocalFree Lib "kernel32" (ByVal hMem As Long) As Long

    Private Declare Function FileTimeToSystemTime Lib "kernel32" (lpFileTime As FILETIME, lpSystemTime As SYSTEMTIME) As Long

    Private Declare Function FileTimeToLocalFileTime Lib "kernel32" (lpFileTime As FILETIME, lpLocalFileTime As FILETIME) As Long


If you search for those online (URL related ones), you should find code to do it.

The code I have isn't easilly understandable, so I won't even try to post it.

[Edited by JLRodgers on 06-12-2002 at 11:44 PM GMT]

07-12-2002 at 05:42 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon Re: Internet History

hi! JL, where can i get code for using these API calls?

____________________________
Been busy trying to take a second degree <--it's not working out...

08-12-2002 at 08:08 AM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: Internet History

The API guide (allapi.net downloadable program, that's the mirror of the web) has code under FindNextUrlCache.

Web site has it at:
http://www.allapi.net/apilist/FindFirstUrlCacheEntry.shtml

It's under the "Enum and Delete Cache" towards the bottom



____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

08-12-2002 at 11:07 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
JustinTIme
Level: Guest

icon Re: Internet History

thanks for your reply
that gives me a good place to start
allapi.net is a great site for api functions and i have found it extrememly helpful.

Furhter to my original question( i didnt really explain what i was wanting very well)
I am writing a VB6 application with a web browser, and was mainly interested in finding out if there is anyway that any web pages that are visited can not be added to your your internet history.

The navigate method of the browser control
Navigate(URL As String, [Flags], [TargetFrameName], [PostData], [Headers])
the 2nd argument being flags which can be set to stop being written to or read from local cache, open in new window or dont add to history list. From what i can see they are only for that control's cache and history,  not your internet history,  and it is your internet hisory that i am interested in not having a particular web page recorded

I have also found methods to get the document data from a web page with out actually displaying it, ie createDocumentFromUrl which is a method in mshtml.HTMLDocument, but this only gets the document data and doesnt actually display it.

Anyone have any further ideas ?

10-12-2002 at 10:48 PM
| Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon Re: Re: Internet History

quote:
JustinTIme wrote:
thanks for your reply
that gives me a good place to start
allapi.net is a great site for api functions and i have found it extrememly helpful.

Furhter to my original question( i didnt really explain what i was wanting very well)
I am writing a VB6 application with a web browser, and was mainly interested in finding out if there is anyway that any web pages that are visited CAN NOT be added to your your internet history.

The navigate method of the browser control
Navigate(URL As String, [Flags], [TargetFrameName], [PostData], [Headers])
the 2nd argument being flags which can be set to stop being written to or read from local cache, open in new window or dont add to history list. From what i can see they are only for that control's cache and history,  not your internet history,  and it is your internet hisory that i am interested in not having a particular web page recorded

I have also found methods to get the document data from a web page with out actually displaying it, ie createDocumentFromUrl which is a method in mshtml.HTMLDocument, but this only gets the document data and doesnt actually display it.

Anyone have any further ideas ?


just an idea...
from what i've read in your post...

if you've tested the code, and it seems that the sites you visited in your application's webbrowser still come up on the IE's history, then you might have to use registry functions to clear the strings or keys saved in the registry.

____________________________
Been busy trying to take a second degree <--it's not working out...
10-12-2002 at 11:38 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Internet Applications : Internet History
Previous Topic (Overloading Button click event)Next Topic (MSHTML) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder