Muokkaa

Jaa


IDebugComPlusSymbolProvider::AreSymbolsLoaded

Determines if the debug symbols are loaded for the specified module given the application domain identifier.

Syntax

int AreSymbolsLoaded (
    uint ulAppDomainID,
    Guid guidModule
);

Parameters

ulAppDomainID
[in] Identifier for the application domain.

guidModule
[in] Unique identifier for the module.

Return Value

If the debug symbols are loaded, returns S_OK; otherwise, returns S_FALSE.

Example

The following example shows how to implement this method for a CDebugSymbolProvider object that exposes the IDebugComPlusSymbolProvider interface.

HRESULT CDebugSymbolProvider::AreSymbolsLoaded(
    ULONG32 ulAppDomainID,
    GUID guidModule
)
{
    HRESULT hr = S_OK;
    CComPtr<CModule> pModule;
    Module_ID idModule(ulAppDomainID, guidModule);

    METHOD_ENTRY( CDebugSymbolProvider::AreSymbolsLoaded );

    IfFalseGo( GetModule( idModule, &pModule ) == S_OK, S_FALSE );
Error:

    METHOD_EXIT( CDebugSymbolProvider::AreSymbolsLoaded, hr );
    return hr;
}

See also