none
How can IWebBrowser2 work the same as IE11 browser? RRS feed

  • Question

  • 1. I modify the following registry to force IWebBrowser2 to use IE11 kernel.

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION

    Name        Type                Value

    Test.exe    REG_DWORD    11000

    2. Connect to Azure AD in Windows 10 using an Azure AD work account.

    3. Open the AAD OAuth in IE11 browser, it shows that the work account connected to Azure AD in Windows 10 can be listed. I can select the work account to log in automaticlly and do not need to input password again.

    4. But when I use IWebBrowser2 to navigate to AAD OAuth by following codes,

    m_browser.Navigate(csURL, NULL, NULL, NULL, NULL);

    the work account cannot be listed. I have to input password again.

    How can IWebBrowser2 work the same as IE11 browser? Can anyone help? Thanks.

    Saturday, September 8, 2018 3:58 AM