共用方式為


3.7.4.7 ITypeInfo::GetImplTypeFlags (Opnum 9)

The GetImplTypeFlags method retrieves the IMPLTYPEFLAGS values associated with an interface member of a coclass.

 HRESULT GetImplTypeFlags(
   [in] UINT index,
   [out] INT* pImplTypeFlags
 );

index: MUST be the ordinal position in the coclass interface table of the interface whose associated IMPLTYPEFLAGS values are to be returned.

pImplTypeFlags: MUST be set to either a combination of the IMPLTYPEFLAGS feature constants specified in section 2.2.13, or 0.

Return Values: The method MUST return information in an HRESULT data structure, defined in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following conditions:

  • If the severity bit is set to 0, the method completed successfully.

  • If the severity bit is set to 1 and the entire HRESULT DWORD does not match a value in the following table, a fatal failure occurred.

  • If the severity bit is set to 1 and the entire HRESULT DWORD matches a value in the following table, a failure occurred.

    Return value/code

    Description

    0x8002802B

    TYPE_E_ELEMENTNOTFOUND

    The value of index did not specify the ordinal position of an element in the interface table. See [MS-ERREF].