次の方法で共有


IDiaSymbol::get_baseType

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

[このトピックはプレリリース版のため将来変更される可能性があります。また、プレースホルダとしてブランクのトピックが含まれています。]

Retrieves the base type for this symbol*.*

HRESULT get_baseType ( 
   DWORD* pRetVal
);

Parameters

  • pRetVal
    [out] Returns a value from the BasicType enumeration specifying the base type of the symbol.

Return Value

If successful, returns S_OK; otherwise, returns S_FALSE or an error code.

注意

A return value of S_FALSE means that the property is not available for the symbol.


Remarks

The basic type for a symbol can be determined by first getting the type of the symbol and then interrogating that returned type for the base type. Note that some symbols may not have a base type—for example, a structure name.

Example

IDiaSymbol* pType;
CComPtr<IDiaSymbol> pBaseType;
if (pType->get_type( &pBaseType ) == S_OK)
{
    BasicType btBaseType;
    if (pBaseType->get_baseType((DWORD *)&btBaseType) == S_OK)
    {
        // Do something with basic type.
    }
}

Requirements

Requirement

Description

Header:

dia2.h

Version:

DIA SDK v7.0

See Also

IDiaSymbol
BasicType
IDiaSymbol::get_type