Compartir a través de


IDebugSymbolProviderDirect::GetMethodFromAddress

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves information about the method at the specified debug address.

Syntax

HRESULT GetMethodFromAddress(
   IDebugAddress* pAddress,
   GUID*          pGuid,
   DWORD*         pAppID,
   _mdToken*      pTokenClass,
   _mdToken*      pTokenMethod,
   DWORD*         pdwOffset,
   DWORD*         pdwVersion
);
int GetMethodFromAddress(
   IDebugAddress pAddress,
   out Guid      pGuid,
   out uint      pAppID,
   out uint      pTokenClass,
   out uint      pTokenMethod,
   out uint      pdwOffset,
   out uint      pdwVersion
);

Parameters

pAddress
[in] Debug address that is represented by the IDebugAddress interface.

pGuid
[out] Unique identifier of the module.

pAppID
[out] Identifier of the application domain.

pTokenClass
[out] Token that represents the containing class.

pTokenMethod
[out] Token that represents the module.

pdwOffset
[out] An offset in bytes from the start of the pAddress parameter.

pdwVersion
[out] Version number of the method.

Return Value

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

See also