Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
The DualEngine API is part of a Limited Access Feature (see LimitedAccessFeatures class). For more information or to request an unlock token, contact Microsoft Support.
interface IDualEngine20Browser
: public IUnknown
Represents an Internet Explorer tab.
Summary
| Members | Descriptions |
|---|---|
| DualEngineBrowserCommitted | Notifies the browser that it has been committed and is no longer speculative. |
| DualEngineClose | Closes the browser instance. |
| DualEngineDeleteTabRecoveryData | Deletes tab recovery data. |
| DualEngineDoOnBeforeUnloadAndStop | Stops any navigations that are in progress and runs the onBeforeUnload handlers. |
| DualEngineDPIChanged | Notifies that DPI has changed and page layout should be recalculated. |
| DualEngineEnableCaretMode | Enables or disables Caret Browsing mode. |
| DualEngineExecNavigationCommand | Executes a navigation command. |
| DualEngineFindOnPage | Finds an instance of text on the page. |
| DualEngineForceClose | Force-closes the browser instance. |
| DualEngineGeolocationPermissionResponse | Provides a response to a geolocation permission request. |
| DualEngineGoToEntry | Navigates to a specific travel log entry. |
| DualEngineInitialize | Initializes the browser object with an URL. |
| DualEngineInitialize2 | Initializes the browser object with an URL; this version allows for additional information about the initial navigation to be passed in. |
| DualEngineInitializeWithRecoveryData | Initializes the browser object using tab recovery data. |
| DualEngineLostFocus | Notifies the browser that it has lost focus. |
| DualEngineNavigate | Navigates to a URL. |
| DualEngineNavigate2 | Navigates to a URL, with additional information about the navigation. |
| DualEngineNotifyNavigationEntriesDeleted | Notifies that navigation entries have been deleted. |
| DualEnginePrepareToExitRegion | Notifies the browser that a navigation is occurring to a page that will be handled by the host. |
| DualEnginePrint | Invokes the Print dialog for the current page. |
| DualEngineProtectFocus | Controls whether the browser tries to change focus to itself. |
| DualEngineSavePageAs | Invokes the Save Webpage dialog for the current page. |
| DualEngineSetEngineSwitchingPolicyFlags | Sets flags that determine how the browser handles engine switching. |
| DualEngineSetFocus | Sets focus inside the hosted browser. |
| DualEngineSetMediaFullscreen | Changes the full-screen state of the media playing in the browser. |
| DualEngineSetPosition | Sets the size and position of the browser window. |
| DualEngineSetTheaterFullscreen | Changes the Theater mode state of the browser. |
| DualEngineSetTheaterMargins | Adjusts the top margin of the browser window when it is being displayed in theater mode. |
| DualEngineSetVisible | Notifies the browser of a visibility change. |
| DualEngineSetWindowStyle | Changes the style of the browser window. |
| DualEngineSetZoom | Changes the zoom value of the browser. |
| DualEngineSimulateKeyInput | Sends a simulated key input. |
| DualEngineSimulateMouseInput | Sends a simulated mouse input. |
| DualEngineStopFindOnPage | Stops the find operation. |
| DualEngineTranslateAccelerator | Processes an accelerator message. |
Applies to
| Product | Introduced |
|---|---|
| Windows 10, Version 20H1 | KB5032278 |
| Windows 11, Version 22H2 | KB5032288 |
Members
DualEngineBrowserCommitted
Notifies the browser that it has been committed and is no longer speculative.
public HRESULT DualEngineBrowserCommitted()
DualEngineClose
Closes the browser instance.
public HRESULT DualEngineClose()
DualEngineDeleteTabRecoveryData
Deletes tab recovery data.
public HRESULT DualEngineDeleteTabRecoveryData(REFGUID guidTabId)
Parameters
guidTabIdThe GUID for the source recovery data file to delete.
DualEngineDoOnBeforeUnloadAndStop
Stops any navigations that are in progress and runs the onBeforeUnload handlers.
public HRESULT DualEngineDoOnBeforeUnloadAndStop()
DualEngineDPIChanged
Notifies that DPI has changed and page layout should be recalculated.
public HRESULT DualEngineDPIChanged()
DualEngineEnableCaretMode
Enables or disables Caret Browsing mode.
public HRESULT DualEngineEnableCaretMode(BOOL fEnable)
Parameters
fEnableSpecifies whether caret browsing should be enabled.
DualEngineExecNavigationCommand
Executes a navigation command.
public HRESULT DualEngineExecNavigationCommand(NAVIGATION_COMMAND command)
Parameters
commandThe navigation command to execute.
DualEngineFindOnPage
Finds an instance of text on the page.
public HRESULT DualEngineFindOnPage(int iRequestID, LPCWSTR pszFindText, BOOL fFindNext, BOOL fForward)
Parameters
iRequestIDAn ID to use correlate find on page requests and events.pszFindTextThe text to find on the page.fFindNextIndicates whether the selection should move to the next instance the find text, true advances the selection and false does not.fForwardIndicates the direction the selection should me, true moves forward and false moves backwards.
DualEngineForceClose
Force-closes the browser instance.
public HRESULT DualEngineForceClose()
DualEngineGeolocationPermissionResponse
Provides a response to a geolocation permission request.
public HRESULT DualEngineGeolocationPermissionResponse(LPCWSTR pszUri, SITE_PERMISSION_RESPONSE response)
Parameters
pszUriThe URI the geolocation request was from.responseThe response to the request.
DualEngineGoToEntry
Navigates to a specific travel log entry.
public HRESULT DualEngineGoToEntry(ULONG ulEntryId)
Parameters
ulEntryIdThe travel log entry ID to navigate to.
DualEngineInitialize
Initializes the browser object with an URL.
public HRESULT DualEngineInitialize(IDualEngine20BrowserObserver * pDualEngineObserver, DUALENGINECONFIGURATION config, EngineSwitchingPolicyFlags engineSwitchingPolicyFlags, SentinelEntryInfo sentinelEntryInfo, LPCWSTR pszUrl, HWND hwndHost, HWND * phwnd)
Parameters
pDualEngineObserverA pointer to the observer for this browser.configConfiguration flags for the desired browser behavior.engineSwitchingPolicyFlagsFlags that determine how engine switching is handled.sentinelEntryInfoThe number of history items before and after the initial navigation for this instance.pszUrlThe inital URL to navigate to.hwndHostThe HWND of the host window that the browser window will be parented to.phwndThe HWND of the browser window.
DualEngineInitialize2
Initializes the browser object with an URL; this version allows for additional information about the initial navigation to be passed in.
public HRESULT DualEngineInitialize2(IDualEngine20BrowserObserver * pDualEngineObserver, DUALENGINECONFIGURATION config, EngineSwitchingPolicyFlags engineSwitchingPolicyFlags, SentinelEntryInfo sentinelEntryInfo, LPCWSTR pszUrl, HWND hwndHost, HWND * phwnd, LPCWSTR pszReferrer, LPCWSTR pszHeaders, VARIANT * postData)
Parameters
pDualEngineObserverA pointer to the observer for this browser.configConfiguration flags for the desired browser behavior.engineSwitchingPolicyFlagsFlags that determine how engine switching is handled.sentinelEntryInfoThe number of history items before and after the initial navigation for this instance.pszUrlThe inital URL to navigate to.hwndHostThe HWND of the host window that the browser window will be parented to.phwndThe HWND of the browser window.pszReferrerThe HTTP Referer request header for the initial navigation.pszHeadersAdditional headers to send to the server for the initial navigation.postDataData to be sent to the server as part of a HTTP POST transaction for the initial navigation.
DualEngineInitializeWithRecoveryData
Initializes the browser object using tab recovery data.
public HRESULT DualEngineInitializeWithRecoveryData(REFGUID guidTabId, ULONG ulEntryId, IDualEngine20BrowserObserver * pDualEngineObserver, DUALENGINECONFIGURATION config, EngineSwitchingPolicyFlags engineSwitchingPolicyFlags, SentinelEntryInfo sentinelEntryInfo, LPCWSTR pszUrl, HWND hwndHost, HWND * phwnd)
Parameters
guidTabIdThe GUID for the source recovery data file to initialize this instance with.ulEntryIdThe ID of the entry in the travel log to navigate to after recovery.pDualEngineObserverA pointer to the observer for this browser.configConfiguration flags for the desired browser behavior.engineSwitchingPolicyFlagsFlags that determine how engine switching is handled.sentinelEntryInfoThe number of history items before and after the initial navigation for this instance.pszUrlThe inital URL to navigate to.hwndHostThe HWND of the host window that the browser window will be parented to.phwndThe HWND of the browser window.
DualEngineLostFocus
Notifies the browser that it has lost focus.
public HRESULT DualEngineLostFocus(HWND hwndLostFocus)
Parameters
hwndLostFocusThe window that focus is moving to.
DualEngineNavigate
Navigates to a URL.
public HRESULT DualEngineNavigate(LPCWSTR pszUrl, BOOL fSkipOnBeforeUnload)
Parameters
pszUrlThe URL to navigate to.fSkipOnBeforeUnloadWhether to skip theonBeforeUnloadhandling.
DualEngineNavigate2
Navigates to a URL, with additional information about the navigation.
public HRESULT DualEngineNavigate2(LPCWSTR pszUrl, BOOL fSkipOnBeforeUnload, LPCWSTR pszReferrer, LPCWSTR pszHeaders, VARIANT * postData)
Parameters
pszUrlThe URL to navigate to.fSkipOnBeforeUnloadWhether to skip theonBeforeUnloadhandling.pszReferrerThe HTTP Referer request header for this navigation.pszHeadersAdditional headers to send to the server for this navigation.postDataData to be sent to the server as part of a HTTP POST transaction for this navigation.
DualEngineNotifyNavigationEntriesDeleted
Notifies that navigation entries have been deleted.
public HRESULT DualEngineNotifyNavigationEntriesDeleted(BOOL fShouldDeleteEntries, SentinelEntryInfo sentinelEntryInfo)
Parameters
fShouldDeleteEntriesIndicates whether the browser should delete all the entries in it's list.sentinelEntryInfoThe number of history items before and after the initial navigation for this instance.
DualEnginePrepareToExitRegion
Notifies the browser that a navigation is occurring to a page that will be handled by the host.
public HRESULT DualEnginePrepareToExitRegion(EXIT_REGION_TYPE type)
Parameters
typeThe type of navigation that is causing this exit.
DualEnginePrint
Invokes the Print dialog for the current page.
public HRESULT DualEnginePrint()
DualEngineProtectFocus
Controls whether the browser tries to change focus to itself.
public HRESULT DualEngineProtectFocus(BOOL fProtectFocus)
Parameters
fProtectFocusIftrue, the browser will not try to steal focus; iffalse, stealing focus is allowed.
DualEngineSavePageAs
Invokes the Save Webpage dialog for the current page.
public HRESULT DualEngineSavePageAs()
DualEngineSetEngineSwitchingPolicyFlags
Sets flags that determine how the browser handles engine switching.
public HRESULT DualEngineSetEngineSwitchingPolicyFlags(EngineSwitchingPolicyFlags engineSwitchingPolicyFlags)
Parameters
engineSwitchingPolicyFlagsFlags representing the desired engine switching behavior.
DualEngineSetFocus
Sets focus inside the hosted browser.
public HRESULT DualEngineSetFocus(DUALENGINE_FOCUSDIRECTION focusDirection)
Parameters
focusDirectionThe direction that focus is moving within the browser.
DualEngineSetMediaFullscreen
Changes the full-screen state of the media playing in the browser.
public HRESULT DualEngineSetMediaFullscreen(BOOL fFullscreen)
Warning
Despite its name, this function only exits fullscreen and will do nothing if no media is fullscreen.
Passing true into the function is always a no-op.
Parameters
fFullscreenIffalse, fullscreen will be exited if media is fullscreen; iftrue, nothing happens.
DualEngineSetPosition
Sets the size and position of the browser window.
public HRESULT DualEngineSetPosition(int x, int y, int iWidth, int iHeight)
Parameters
xThe new position of the left side of the window, in client coordinates.yThe new position of the top of the window, in client coordinates.iWidthThe new width of the window, in pixels.iHeightThe new height of the window, in pixels.
DualEngineSetTheaterFullscreen
Changes the Theater mode state of the browser.
public HRESULT DualEngineSetTheaterFullscreen(BOOL fFullscreen)
In theater mode, the browsers window fills the entire screen and displays a toolbar that has a minimal set of navigation buttons. A status bar is also provided in the upper-right corner of the screen. Explorer bars, such as History and Favorites, are displayed as an autohide pane on the left edge of the screen in theater mode.
Parameters
fFullscreenIftrueand not currently in theater mode, the browser will enter theater mode; iffalseand currently in theater mode, the browser will exit theater mode.
DualEngineSetTheaterMargins
Adjusts the top margin of the browser window when it is being displayed in theater mode.
public HRESULT DualEngineSetTheaterMargins(BOOL fTheaterShowing, int yTheaterThreshold)
Parameters
fTheaterShowingIndicates whether the host is currently in theater mode.yTheaterThresholdThe size in pixels of the margin between the top of the screen and the fullscreen browser window.
DualEngineSetVisible
Notifies the browser of a visibility change.
public HRESULT DualEngineSetVisible(BROWSERVISIBILITY visibility)
Parameters
visibilityThe visibility state we are entering.
DualEngineSetWindowStyle
Changes the style of the browser window.
public HRESULT DualEngineSetWindowStyle(int wlStyle, int wlExStyle)
Parameters
wlStyleThe Window Style value to set.wlExStyleThe Extended Windows Style value to set.
DualEngineSetZoom
Changes the zoom value of the browser.
public HRESULT DualEngineSetZoom(int iZoomPercent)
Parameters
iZoomPercentThe zoom percentage to set the browser to.
DualEngineSimulateKeyInput
Sends a simulated key input.
public HRESULT DualEngineSimulateKeyInput(DWORD vKey, KEYACTION keyAction)
Parameters
vKeyThe virtual keycode to simulate.keyActionThe key action to simulate.
DualEngineSimulateMouseInput
Sends a simulated mouse input.
public HRESULT DualEngineSimulateMouseInput(DWORD x, DWORD y, MOUSEACTION mouseAction)
Parameters
xThe x coordinate.yThe y coordinate.mouseActionThe mouse action to simulate.
DualEngineStopFindOnPage
Stops the find operation.
public HRESULT DualEngineStopFindOnPage(BOOL fClean)
Parameters
fCleanIftrue, the highlighted results and current selected result will be cleared; iffalse, the current selected result will remain selected.
DualEngineTranslateAccelerator
Processes an accelerator message.
public HRESULT DualEngineTranslateAccelerator(LPMSG lpMsg)
Parameters
lpMsgA pointer to a MSG structure that specifies the message to be translated.