This sample project demonstrations how to read cookies from Internet Explorer using either the InternetGetCookieExW Win32 API or the WebBrowser control.
For more details, see the accompanying blog post
https://www.cyotek.com/blog/reading-cookies-from-internet-explorer