CompatFlagsFromClsid function
Reads the Microsoft ActiveX Compatibility registry entries for the specified ActiveX control.
Syntax
HRESULT CompatFlagsFromClsid( CLSID *pclsid, LPDWORD pdwCompatFlags, LPDWORD pdwMiscStatusFlags );
Parameters
- pclsid
-
A pointer to the CLSID of the ActiveX control.
- pdwCompatFlags
-
Receives a value from the COMPAT enumeration. This parameter returns a value of zero if the entry is missing from the registry.
- pdwMiscStatusFlags
-
Receives a value from the OLEMISC enumeration. This parameter returns a value of zero if the entry is missing from the registry.
Return value
Returns one of the following values.
| Return code | Description |
|---|---|
|
Indicates that zone elevation is disallowed. |
|
Indicates that the registry entry cannot be found. |
|
Indicates that pclsid, pdwCompatFlags, or pdwMiscStatusFlags is NULL. |
Remarks
The CompatFlagsFromClsid function was introduced in Microsoft Internet Explorer 6 for Windows XP Service Pack 2 (SP2).
The compatibility registry keys for ActiveX controls can be found at HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility in the registry.
This function is used by IMoniker::BindToObject to determine whether an ActiveX control can be created.
Requirements
|
Minimum supported client |
Windows XP with SP2 |
|---|---|
|
Minimum supported server |
Windows Server 2003 |
|
Product |
Internet Explorer 6.0 |
|
Header |
|
|
Library |
|
|
DLL |
|