Freigeben über


IDebugHostPublic::GetLocation-Methode (dbgmodel.h)

Für Daten mit einer Adresse gibt die GetLocation-Methode den abstrakten Speicherort (Adresse) des Felds zurück.

Wenn die angegebene Öffentliche keinen statischen Speicherort hat, schlägt die GetLocation-Methode fehl.

Syntax

HRESULT GetLocation(
  Location *location
);

Parameter

location

Die abstrakte Position (z. B. Adresse) der Daten wird hier zurückgegeben.

Rückgabewert

Diese Methode gibt HRESULT zurück, das Erfolg oder Fehler angibt.

Bemerkungen

Beispielcode-

ComPtr<IDebugHostPublic> spPublic; /* get a public symbol (see EnumerateChildren) */

Location publicLocation;
if (SUCCEEDED(spPublic->GetLocation(&publicLocation)))
{
    // For public symbols which indicate they have a static location 
    // via GetLocationKind, publicLocation will be the location of the symbol
}

Anforderungen

Anforderung Wert
Header- dbgmodel.h

Siehe auch

IDebugHostPublic-Schnittstelle