First of all, thank you all for taking time to read the question.
I am embedding Microsoft WebBrowser ActiveX control into my application. Normally such a WebBrowser instance saves cookies and caches to the system default location C:\Users\${foo}\AppData\Roaming\Microsoft\Windows\Cookies
.
I want to store cookies in another directory. SFAIK that WebBrowser control uses WinINet
to access caches and cookies. I think I should call InternetSetOption
with a proper option flag. Can anybody shed some light on it?