WebBrowser Plugin API¶
This page lists all the functions exported from the WebBrowser plugin and explains how to use them.
This function takes one parameter: the URL or file path to be displayed. It returns nothing.
ShowPagewill block until the page is closed, either by closing the window or by something like sending the parent dialog a “go to page” message.
Dialog item 1018 will be taken over as the control to display the web page in, so if you’re using a custom dialog template, be sure it contains a control with that ID.
file:URL’s are supported, but passing in just the file path also works. Relative paths are supported but should be avoided because the stub installer’s working directory isn’t necessarily predictable or meaningful. Web (HTTP or HTTPS) URL’s can be used, but the security restrictions the browser control is configured with will prevent most resource files from being downloaded, so they are unlikely to be very useful.
This function takes two parameters, the function address, as obtained from the
RegisterCustomFunctionshould be called before
ShowPage(which will block anyway).
This function creates an interval timer and invokes a callback at each interval.
This function takes two parameters, the function address of the timer callback, as obtained from the
GetFunctionAddressinstruction, and then the timer interval in milliseconds. It returns a handle which can later be passed to
This function stops running a timer that was started by
It takes the handle that
CreateTimerreturned, and returns nothing.