FaultInIEFeature function
This synchronous function is invoked by the client of a Windows Internet Explorer feature before the client accesses the feature.
Syntax
HRESULT FaultInIEFeature( _In_ HWND hWnd, _In_ uCLSSPEC *pClassSpec, _Inout_ QUERYCONTEXT *pQuery, _In_ DWORD dwFlags );
Parameters
- hWnd [in]
-
A handle to the parent window of the HTML dialog box.
- pClassSpec [in]
-
A pointer to a union that provides ways of mapping to a CLSID. Note that
uCLSSPECis defined insdk\inc\wtypes.h. - pQuery [in, out]
-
A ointer to a structure that contains a list of attributes used to look up a class implementation. The installed version number is returned in
FIEF_FLAG_PEEK, which is passed in. - dwFlags [in]
-
The control behavior. The following values are valid.
-
Force JIT, even if the user has canceled a previous JIT in the same session, or has specified to
Never JITthis feature. Note: For Internet Explorer 7, this flag is not respected; it is overridden byE_ACCESSDENIED. -
Do not faultin, just peek. Note: Peek also returns the currently installed version in the
QUERYCONTEXT. For Internet Explorer 7, it disables the Java dialog box. -
Ignores local version as being satisfactory and forces JIT download. Typically, this is called by code download, or by another caller after a CoCreateInstance call has failed with
REGDB_E_CLASSNOTREGorERROR_MOD_NOT_FOUND(missing a dependency DLL). Note: The registry might show that this feature is installed when it is not, or when it is damaged. For Internet Explorer 7, this flag is not respected; it is overridden byE_ACCESSDENIED.
Return value
Returns one of the following values.
| Return code | Description |
|---|---|
|
Behavior is installed. Call CoCreateInstance or IMoniker::BindToObject or another system service to invoke the class or MIME handler. |
|
The class or MIME handler is not part of an Internet Explorer feature. Call CoCreateInstance, IMoniker::BindToObject, or some other system service to invoke the class or MIME handler. Active setup settings are not found in registry. |
|
The administrator has turned off the JIT feature. |
Remarks
If the feature is already installed, then the function succeeds and the client should attempt to access the feature. Successful return does not guarantee that the feature is fully installed, or that the feature will work. The client should still provide access to the feature with proper error checking.
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows 2000 Server |
|
Product |
Internet Explorer 4.0 |
|
Header |
|
|
Library |
|
|
DLL |
|