WebGadget delete history ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

WebGadget delete history ?

Post 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 ?
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: WebGadget delete history ?

Post 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)
Post Reply