IDebugComPlusSymbolProvider::ReplaceSymbols

Replaces the current debug symbols with those in the specified data stream.

HRESULT ReplaceSymbols(
   ULONG32  ulAppDomainID,
   GUID     guidModule,
   IStream* pStream
);
int ReplaceSymbols(
   uint    ulAppDomainID,
   Guid    guidModule,
   IStream pStream
);

Parameters

  • ulAppDomainID
    [in] Identifier of the application domain.

  • guidModule
    [in] Unique identifier of the module.

  • pStream
    [in] Data stream that contains the new symbols.

Return Value

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

Example

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

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

    METHOD_ENTRY( CDebugSymbolProvider::ReplaceSymbols );

    IfFailGo( GetModule( idModule, &pModule ) );
    IfFailGo( pModule->ReplaceSymbols( pStream ) );

Error:

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

See Also

Reference

IDebugComPlusSymbolProvider