How to get the window handle for the Internet Explorer process you created (LCIE IE 8)

One technique people use in accessibility applications is to kick off an application and then grab the Window handle of the process to hook it or do other processing.  With loosely coupled Internet Explorer (LCIE) this is a little more difficult that simply getting the handle of the iexplore.exe process you kick off.  The reason…

2

Understanding the new WinInet options: INTERNET_SUPPRESS_COOKIE_PERSIST and INTERNET_SUPPRESS_COOKIE_PERSIST_RESET

These options are well documented.  Important notes: These flags affect the process that you set this option from.  You do not need to pass an InternetHandle (but no error if you do). Sample code: bool abRes = false;DWORD adOption = INTERNET_SUPPRESS_COOKIE_PERSIST;abRes= InternetSetOption(hInternet, INTERNET_OPTION_SUPPRESS_BEHAVIOR ,&adOption,sizeof(adOption));adOption = INTERNET_SUPPRESS_COOKIE_PERSIST_RESET;abRes= InternetSetOption(hInternet, INTERNET_OPTION_SUPPRESS_BEHAVIOR ,&adOption,sizeof(adOption));  

0

Understanding the new WinInet option: INTERNET_OPTION_MAX_CONNS_PER_PROXY

The documentation on this is very straight forward (http://msdn.microsoft.com/en-us/library/aa385328(VS.85).aspx).  At the time of publishing however the documentation has a slight error.  You cannot pass a handle in for the first argument.  It must be NULL or the call will return false and GetLastError() will show the error is: ERROR_INTERNET_INVALID_OPERATION.  The default value for this option…

0

Understanding the new WinInet option INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT

With the release of Internet Explorer 8 comes a new option you can query for with programming with the WinInet APIs: INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT.  The MSDN documentation tells you it allows you to get the PCCERT_CHAIN_CONTEXT, and not much more.  It does not show you how to properly get the Context.  I like to see things in action…

0

Understanding the New WinInet flag: INTERNET_COOKIE_HTTPONLY

There are a couple of new Cookie flags introduced with the Internet Explorer 8 WinInet.dll.  The INTERNET_COOKIE_HTTPONLY flag allows you to read the HttpOnly cookies in your WinInet Code.  This flag is documented here: http://msdn.microsoft.com/en-us/library/aa384714(VS.85).aspx.  As always, I like to see examples of how this flag works! Here is a sample ASPX page to create…

0

Understanding the New WinInet option: INTERNET_OPTION_SUPPRESS_SERVER_AUTH

With the release of Internet Explorer 8 comes a new option for WinInet programming: INTERNET_OPTION_SUPPRESS_SERVER_AUTH.  The MSDN documentation is very specific and describes how the option affects authorization, but I like to see things in action!  How about some sample code for INTERNET_OPTION_SUPPRESS_SERVER_AUTH? This option is documented here: http://msdn.microsoft.com/en-us/library/aa385328(VS.85).aspx (note that if you are not using the…

0