Page 1 of 1

WebGadget delete history ?

Posted: Wed Dec 27, 2023 1:58 pm
by Mijikai
Is there a way to delete the history/data/cookies for the WebGadget + #PB_Web_Edge (PureBasic 6.10 beta 1) ?
How does it work ?

Re: WebGadget delete history ?

Posted: Wed Dec 27, 2023 9:09 pm
by Mijikai
Deleting the history seems to be possible via the ICoreWebView2Profile2 interface.

https://learn.microsoft.com/en-us/micro ... .0.2088.41
ClearBrowsingData(COREWEBVIEW2_BROWSING_DATA_KINDS dataKinds, ICoreWebView2ClearBrowsingDataCompletedHandler * handler)
Maybe i can get there via the IWebBrowser2 interface not sure yet.
However the new WebGadget (#PB_Web_Edge) doesnt seem to expose the pointer to the IWebBrowser2 interface any longer.
If its still the same interface!

This worked before:

Code: Select all

GetWindowLongPtr_(GadgetID(Gadget),#GWLP_USERDATA)