共用方式為


UNMANAGED_ADDRESS_THIS_RELATIVE

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

This structure represents an address that is relative to a this pointer (Me in Visual Basic).

Syntax

typedef struct _tagUNMANAGED_THIS_RELATIVE {
   DWORD dwOffset;
   DWORD dwBitOffset;
   DWORD dwBitLength;
} UNMANAGED_ADDRESS_THIS_RELATIVE;
public struct UNMANAGED_THIS_RELATIVE {
   public uint dwOffset;
   public uint dwBitOffset;
   public uint dwBitLength;
}

Members

dwOffset
Byte offset from a base position (for example, start of a class vtable).

dwBitOffset
Offset in bits from a base position (always 0 unless referring to a bit field).

dwBitLength
Number of bits representing the address (always 0 unless referring to a bit field).

Remarks

This structure is part of the union in the DEBUG_ADDRESS_UNION structure when the dwKind field of the DEBUG_ADDRESS_UNION structure is set to ADDRESS_KIND_UNMANAGED_THIS_RELATIVE (a value from the ADDRESS_KIND enumeration).

Requirements

Header: sh.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also