Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Hosting and Reuse
IEProcess
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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker