0 out of 1 rated this helpful - Rate this topic

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 codeDescription
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 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Product

Internet Explorer 6.0

Header

Urlmon.h

Library

Urlmon.lib

DLL

 

 

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.