|
2 | 2 | title: "ADDRESS_KIND | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -f1_keywords: |
| 5 | +f1_keywords: |
6 | 6 | - "ADDRESS_KIND"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "ADDRESS_KIND enumeration"
|
9 | 9 | ms.assetid: 3a12fbec-7088-4cf9-8f6f-ad8ddec6009a
|
10 | 10 | author: "gregvanl"
|
11 | 11 | ms.author: "gregvanl"
|
12 | 12 | manager: jillfra
|
13 |
| -ms.workload: |
| 13 | +ms.workload: |
14 | 14 | - "vssdk"
|
15 | 15 | ---
|
16 | 16 | # ADDRESS_KIND
|
17 |
| -Specifies the kinds of addresses. |
18 |
| - |
19 |
| -## Syntax |
20 |
| - |
21 |
| -```cpp |
22 |
| -enum enum_ADDRESS_KIND { |
23 |
| - ADDRESS_KIND_NATIVE = 0x0001, |
24 |
| - ADDRESS_KIND_UNMANAGED_THIS_RELATIVE = 0x0002, |
25 |
| - ADDRESS_KIND_UNMANAGED_PHYSICAL = 0x0005, |
26 |
| - ADDRESS_KIND_METADATA_METHOD = 0x0010, |
27 |
| - ADDRESS_KIND_METADATA_FIELD = 0x0011, |
28 |
| - ADDRESS_KIND_METADATA_LOCAL = 0x0012, |
29 |
| - ADDRESS_KIND_METADATA_PARAM = 0x0013, |
30 |
| - ADDRESS_KIND_METADATA_ARRAYELEM = 0x0014, |
31 |
| - ADDRESS_KIND_METADATA_RETVAL = 0x0015, |
32 |
| -}; |
33 |
| -typedef DWORD ADDRESS_KIND; |
34 |
| -``` |
35 |
| - |
36 |
| -```csharp |
37 |
| -public enum enum_ADDRESS_KIND { |
38 |
| - ADDRESS_KIND_NATIVE = 0x0001, |
39 |
| - ADDRESS_KIND_UNMANAGED_THIS_RELATIVE = 0x0002, |
40 |
| - ADDRESS_KIND_UNMANAGED_PHYSICAL = 0x0005, |
41 |
| - ADDRESS_KIND_METADATA_METHOD = 0x0010, |
42 |
| - ADDRESS_KIND_METADATA_FIELD = 0x0011, |
43 |
| - ADDRESS_KIND_METADATA_LOCAL = 0x0012, |
44 |
| - ADDRESS_KIND_METADATA_PARAM = 0x0013, |
45 |
| - ADDRESS_KIND_METADATA_ARRAYELEM = 0x0014, |
46 |
| - ADDRESS_KIND_METADATA_RETVAL = 0x0015, |
47 |
| -}; |
48 |
| -``` |
49 |
| - |
50 |
| -## Terms |
51 |
| - ADDRESS_KIND_NATIVE |
52 |
| - A native address, represented by the [NATIVE_ADDRESS](../../../extensibility/debugger/reference/native-address.md) structure. |
53 |
| - |
54 |
| - ADDRESS_KIND_UNMANAGED_THIS_RELATIVE |
55 |
| - An unmanaged address relative to a `this` (`Me` in Visual Basic) pointer and represented by the [UNMANAGED_ADDRESS_THIS_RELATIVE](../../../extensibility/debugger/reference/unmanaged-address-this-relative.md) structure. |
56 |
| - |
57 |
| - ADDRESS_KIND_UNMANAGED_PHYSICAL |
58 |
| - An unmanaged physical address, represented by the [UNMANAGED_ADDRESS_PHYSICAL](../../../extensibility/debugger/reference/unmanaged-address-physical.md) structure. |
59 |
| - |
60 |
| - ADDRESS_KIND_METHOD |
61 |
| - A method of a class, represented by the [METADATA_ADDRESS_METHOD](../../../extensibility/debugger/reference/metadata-address-method.md) structure. |
62 |
| - |
63 |
| - ADDRESS_KIND_FIELD |
64 |
| - A field of a class, represented by the [METADATA_ADDRESS_FIELD](../../../extensibility/debugger/reference/metadata-address-field.md) structure. |
65 |
| - |
66 |
| - ADDRESS_KIND_LOCAL |
67 |
| - The address is for a local variable and is represented by the [METADATA_ADDRESS_LOCAL](../../../extensibility/debugger/reference/metadata-address-local.md) structure. |
68 |
| - |
69 |
| - ADDRESS_KIND_PARAM |
70 |
| - A method or function parameter, represented by the [METADATA_ADDRESS_PARAM](../../../extensibility/debugger/reference/metadata-address-param.md) structure. |
71 |
| - |
72 |
| - ADDRESS_KIND_ARRAYELEM |
73 |
| - An array element, represented by the [METADATA_ADDRESS_ARRAYELEM](../../../extensibility/debugger/reference/metadata-address-arrayelem.md) structure. |
74 |
| - |
75 |
| - ADDRESS_KIND_RETVAL |
76 |
| - A return value, represented by the [METADATA_ADDRESS_RETVAL](../../../extensibility/debugger/reference/metadata-address-retval.md) structure. |
77 |
| - |
78 |
| -## Remarks |
79 |
| - The [GetAddress](../../../extensibility/debugger/reference/idebugaddress-getaddress.md) method returns the [DEBUG_ADDRESS](../../../extensibility/debugger/reference/debug-address.md) structure which contains a union of possible structures, the [DEBUG_ADDRESS_UNION](../../../extensibility/debugger/reference/debug-address-union.md) structure. The `dwKind` field of the `DEBUG_ADDRESS_UNION` structure holds the `ADDRESS_KIND` value and describes how to interpret the union field. |
80 |
| - |
81 |
| -## Requirements |
82 |
| - Header: sh.h |
83 |
| - |
84 |
| - Namespace: Microsoft.VisualStudio.Debugger.Interop |
85 |
| - |
86 |
| - Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
87 |
| - |
88 |
| -## See Also |
89 |
| - [Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
90 |
| - [GetAddress](../../../extensibility/debugger/reference/idebugaddress-getaddress.md) |
91 |
| - [DEBUG_ADDRESS](../../../extensibility/debugger/reference/debug-address.md) |
92 |
| - [DEBUG_ADDRESS_UNION](../../../extensibility/debugger/reference/debug-address-union.md) |
| 17 | +Specifies the kinds of addresses. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +```cpp |
| 22 | +enum enum_ADDRESS_KIND { |
| 23 | + ADDRESS_KIND_NATIVE = 0x0001, |
| 24 | + ADDRESS_KIND_UNMANAGED_THIS_RELATIVE = 0x0002, |
| 25 | + ADDRESS_KIND_UNMANAGED_PHYSICAL = 0x0005, |
| 26 | + ADDRESS_KIND_METADATA_METHOD = 0x0010, |
| 27 | + ADDRESS_KIND_METADATA_FIELD = 0x0011, |
| 28 | + ADDRESS_KIND_METADATA_LOCAL = 0x0012, |
| 29 | + ADDRESS_KIND_METADATA_PARAM = 0x0013, |
| 30 | + ADDRESS_KIND_METADATA_ARRAYELEM = 0x0014, |
| 31 | + ADDRESS_KIND_METADATA_RETVAL = 0x0015, |
| 32 | +}; |
| 33 | +typedef DWORD ADDRESS_KIND; |
| 34 | +``` |
| 35 | + |
| 36 | +```csharp |
| 37 | +public enum enum_ADDRESS_KIND { |
| 38 | + ADDRESS_KIND_NATIVE = 0x0001, |
| 39 | + ADDRESS_KIND_UNMANAGED_THIS_RELATIVE = 0x0002, |
| 40 | + ADDRESS_KIND_UNMANAGED_PHYSICAL = 0x0005, |
| 41 | + ADDRESS_KIND_METADATA_METHOD = 0x0010, |
| 42 | + ADDRESS_KIND_METADATA_FIELD = 0x0011, |
| 43 | + ADDRESS_KIND_METADATA_LOCAL = 0x0012, |
| 44 | + ADDRESS_KIND_METADATA_PARAM = 0x0013, |
| 45 | + ADDRESS_KIND_METADATA_ARRAYELEM = 0x0014, |
| 46 | + ADDRESS_KIND_METADATA_RETVAL = 0x0015, |
| 47 | +}; |
| 48 | +``` |
| 49 | + |
| 50 | +## Terms |
| 51 | +ADDRESS_KIND_NATIVE |
| 52 | +A native address, represented by the [NATIVE_ADDRESS](../../../extensibility/debugger/reference/native-address.md) structure. |
| 53 | + |
| 54 | +ADDRESS_KIND_UNMANAGED_THIS_RELATIVE |
| 55 | +An unmanaged address relative to a `this` (`Me` in Visual Basic) pointer and represented by the [UNMANAGED_ADDRESS_THIS_RELATIVE](../../../extensibility/debugger/reference/unmanaged-address-this-relative.md) structure. |
| 56 | + |
| 57 | +ADDRESS_KIND_UNMANAGED_PHYSICAL |
| 58 | +An unmanaged physical address, represented by the [UNMANAGED_ADDRESS_PHYSICAL](../../../extensibility/debugger/reference/unmanaged-address-physical.md) structure. |
| 59 | + |
| 60 | +ADDRESS_KIND_METHOD |
| 61 | +A method of a class, represented by the [METADATA_ADDRESS_METHOD](../../../extensibility/debugger/reference/metadata-address-method.md) structure. |
| 62 | + |
| 63 | +ADDRESS_KIND_FIELD |
| 64 | +A field of a class, represented by the [METADATA_ADDRESS_FIELD](../../../extensibility/debugger/reference/metadata-address-field.md) structure. |
| 65 | + |
| 66 | +ADDRESS_KIND_LOCAL |
| 67 | +The address is for a local variable and is represented by the [METADATA_ADDRESS_LOCAL](../../../extensibility/debugger/reference/metadata-address-local.md) structure. |
| 68 | + |
| 69 | +ADDRESS_KIND_PARAM |
| 70 | +A method or function parameter, represented by the [METADATA_ADDRESS_PARAM](../../../extensibility/debugger/reference/metadata-address-param.md) structure. |
| 71 | + |
| 72 | +ADDRESS_KIND_ARRAYELEM |
| 73 | +An array element, represented by the [METADATA_ADDRESS_ARRAYELEM](../../../extensibility/debugger/reference/metadata-address-arrayelem.md) structure. |
| 74 | + |
| 75 | +ADDRESS_KIND_RETVAL |
| 76 | +A return value, represented by the [METADATA_ADDRESS_RETVAL](../../../extensibility/debugger/reference/metadata-address-retval.md) structure. |
| 77 | + |
| 78 | +## Remarks |
| 79 | +The [GetAddress](../../../extensibility/debugger/reference/idebugaddress-getaddress.md) method returns the [DEBUG_ADDRESS](../../../extensibility/debugger/reference/debug-address.md) structure which contains a union of possible structures, the [DEBUG_ADDRESS_UNION](../../../extensibility/debugger/reference/debug-address-union.md) structure. The `dwKind` field of the `DEBUG_ADDRESS_UNION` structure holds the `ADDRESS_KIND` value and describes how to interpret the union field. |
| 80 | + |
| 81 | +## Requirements |
| 82 | +Header: sh.h |
| 83 | + |
| 84 | +Namespace: Microsoft.VisualStudio.Debugger.Interop |
| 85 | + |
| 86 | +Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
| 87 | + |
| 88 | +## See Also |
| 89 | +[Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
| 90 | +[GetAddress](../../../extensibility/debugger/reference/idebugaddress-getaddress.md) |
| 91 | +[DEBUG_ADDRESS](../../../extensibility/debugger/reference/debug-address.md) |
| 92 | +[DEBUG_ADDRESS_UNION](../../../extensibility/debugger/reference/debug-address-union.md) |
0 commit comments