IEProcess Class Home
IEProcess Class
New for Windows Internet Explorer 8

Static helper class used for binding to the IEProcess export tables.

IEProcess Members

GetProcessModule Gets a module handle that hosts the Internet Explorer per-process exports.
GetTabWindowExports Gets a table of exports that implement behaviors specific to the tab window.

Remarks

The following code demonstrates how to use this class to prevent a modal dialog box from appearing until the current tab window becomes visible.

INT_PTR WINAPI Detour_DialogBoxParamW(
        HINSTANCE hInstance, LPCWSTR lpTemplateName, 
        HWND hwndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam)
{
    INT_PTR nRes = -1;
 
    HMODULE hmod = IEProcess::GetProcessModule();

    HRESULT hr = IEProcess::GetTabWindowExports(hmod)->WaitForTabWindow(
            false, hwndParent, &hwndParent);
    if (SUCCEEDED(hr))
    {
        HANDLE hModalDialogLock;
        hr = IEProcess::GetTabWindowExports(hmod)->AcquireModalDialogLockAndParent(
                hwndParent, &hwndParent, &hModalDialogLock);
        if (SUCCEEDED(hr))    
        {
            nRes = Real_DialogBoxParamW(hInstance, lpTemplateName, 
                    hwndParent, lpDialogFunc, dwInitParam);
            IEProcess::GetTabWindowExports(hmod)->ReleaseModalDialogLockAndParent(
                    hModalDialogLock);
        }
    }
    
    return nRes;
} 

Class Information

Stock Implementationiertutil.dll
Custom ImplementationNo
Headerieprocess.h
Minimum availabilityInternet Explorer 8
Minimum operating systems Windows XP SP2
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View