Udostępnij za pośrednictwem


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
S_OK

Indicates that zone elevation is disallowed.

S_FALSE

Indicates that the registry entry cannot be found.

E_INVALIDARG

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

Urlmon.h

Library

Urlmon.lib

DLL

Urlmon.dll