Share via


CONTEXT_INFO

Note

This article applies to Visual Studio 2015. 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

This structure describes a memory context or code context.

Syntax

typedef struct _tagCONTEXT_INFO {   
   CONTEXT_INFO_FIELDS dwFields;  
   BSTR                bstrModuleUrl;  
   BSTR                bstrFunction;  
   TEXT_POSITION       posFunctionOffset;  
   BSTR                bstrAddress;  
   BSTR                bstrAddressOffset;  
   BSTR                bstrAddressAbsolute;  
} CONTEXT_INFO;  
public struct CONTEXT_INFO {  
   public uint          dwFields;  
   public string        bstrModuleUrl;  
   public string        bstrFunction;  
   public TEXT_POSITION posFunctionOffset;  
   public string        bstrAddress;  
   public string        bstrAddressOffset;  
   public string        bstrAddressAbsolute;  
};  

Members

dwFields
A combination of flags from he CONTEXT_INFO_FIELDS enumeration that specifies which fields are filled out.

bstrModuleUrl
The name of the module where the context is located.

bstrFunction
The function name where the context is located.

posFunctionOffset
A TEXT_POSITION structure that identifies the line and column offset of the function associated with the code context.

bstrAddress
The address in code where the given context is located.

bstrAddressOffset
The offset of the address in code where the given context is located.

bstrAddressAbsolute
The absolute address in memory where the given context is located.

Remarks

This structure is returned from a call to the GetInfo method.

A typical use for this structure is in support of a Memory debug window.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Structures and Unions
GetInfo
CONTEXT_INFO_FIELDS
TEXT_POSITION