|
2 | 2 | title: "DEBUG_ADDRESS | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -f1_keywords: |
| 5 | +f1_keywords: |
6 | 6 | - "DEBUG_ADDRESS"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "DEBUG_ADDRESS structure"
|
9 | 9 | ms.assetid: 79f5e765-9aac-4b6e-82ef-bed88095e9ba
|
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 | # DEBUG_ADDRESS
|
17 |
| -This structure represents an address. |
18 |
| - |
19 |
| -## Syntax |
20 |
| - |
21 |
| -```cpp |
22 |
| -typedef struct _tagDEBUG_ADDRESS { |
23 |
| - ULONG32 ulAppDomainID; |
24 |
| - GUID guidModule; |
25 |
| - _mdToken tokClass; |
26 |
| - DEBUG_ADDRESS_UNION addr; |
27 |
| -} DEBUG_ADDRESS; |
28 |
| -``` |
29 |
| - |
30 |
| -```csharp |
31 |
| -public struct DEBUG_ADDRESS { |
32 |
| - public uint ulAppDomainID; |
33 |
| - public Guid guidModule; |
34 |
| - public int tokClass; |
35 |
| - public DEBUG_ADDRESS_UNION addr; |
36 |
| -} |
37 |
| -``` |
38 |
| - |
39 |
| -## Terms |
40 |
| - ulAppDomainID |
41 |
| - The process ID. |
42 |
| - |
43 |
| - guidModule |
44 |
| - The GUID of the module that contains this address. |
45 |
| - |
46 |
| - tokClass |
47 |
| - The token identifying the class or type of this address. |
48 |
| - |
| 17 | +This structure represents an address. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +```cpp |
| 22 | +typedef struct _tagDEBUG_ADDRESS { |
| 23 | + ULONG32 ulAppDomainID; |
| 24 | + GUID guidModule; |
| 25 | + _mdToken tokClass; |
| 26 | + DEBUG_ADDRESS_UNION addr; |
| 27 | +} DEBUG_ADDRESS; |
| 28 | +``` |
| 29 | +
|
| 30 | +```csharp |
| 31 | +public struct DEBUG_ADDRESS { |
| 32 | + public uint ulAppDomainID; |
| 33 | + public Guid guidModule; |
| 34 | + public int tokClass; |
| 35 | + public DEBUG_ADDRESS_UNION addr; |
| 36 | +} |
| 37 | +``` |
| 38 | + |
| 39 | +## Terms |
| 40 | +ulAppDomainID |
| 41 | +The process ID. |
| 42 | + |
| 43 | +guidModule |
| 44 | +The GUID of the module that contains this address. |
| 45 | + |
| 46 | +tokClass |
| 47 | +The token identifying the class or type of this address. |
| 48 | + |
49 | 49 | > [!NOTE]
|
50 |
| -> This value is specific to a symbol provider and therefore has no general meaning other than as an identifier for a class type. |
51 |
| - |
52 |
| - addr |
53 |
| - A [DEBUG_ADDRESS_UNION](../../../extensibility/debugger/reference/debug-address-union.md) structure, which contains a union of structures that describe the individual address types. The value `addr`.`dwKind` comes from the [ADDRESS_KIND](../../../extensibility/debugger/reference/address-kind.md) enumeration, which explains how to interpret the union. |
54 |
| - |
55 |
| -## Remarks |
56 |
| - This structure is passed to the [GetAddress](../../../extensibility/debugger/reference/idebugaddress-getaddress.md) method to be filled in. |
57 |
| - |
58 |
| - **Warning [C++ only]** |
59 |
| - |
60 |
| - If `addr.dwKind` is `ADDRESS_KIND_METADATA_LOCAL` and if `addr.addr.addrLocal.pLocal` is not a null value, then you must call `Release` on the token pointer: |
61 |
| - |
62 |
| -``` |
63 |
| -if (addr.dwKind == ADDRESS_KIND_METADATA_LOCAL && addr.addr.addrLocal.pLocal != NULL) |
64 |
| -{ |
65 |
| - addr.addr.addrLocal.pLocal->Release(); |
66 |
| -} |
67 |
| -``` |
68 |
| - |
69 |
| -## Requirements |
70 |
| - Header: sh.h |
71 |
| - |
72 |
| - Namespace: Microsoft.VisualStudio.Debugger.Interop |
73 |
| - |
74 |
| - Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
75 |
| - |
76 |
| -## See Also |
77 |
| - [Structures and Unions](../../../extensibility/debugger/reference/structures-and-unions.md) |
78 |
| - [GetAddress](../../../extensibility/debugger/reference/idebugaddress-getaddress.md) |
79 |
| - [DEBUG_ADDRESS_UNION](../../../extensibility/debugger/reference/debug-address-union.md) |
80 |
| - [ADDRESS_KIND](../../../extensibility/debugger/reference/address-kind.md) |
| 50 | +> This value is specific to a symbol provider and therefore has no general meaning other than as an identifier for a class type. |
| 51 | + |
| 52 | +addr |
| 53 | +A [DEBUG_ADDRESS_UNION](../../../extensibility/debugger/reference/debug-address-union.md) structure, which contains a union of structures that describe the individual address types. The value `addr`.`dwKind` comes from the [ADDRESS_KIND](../../../extensibility/debugger/reference/address-kind.md) enumeration, which explains how to interpret the union. |
| 54 | + |
| 55 | +## Remarks |
| 56 | +This structure is passed to the [GetAddress](../../../extensibility/debugger/reference/idebugaddress-getaddress.md) method to be filled in. |
| 57 | + |
| 58 | +**Warning [C++ only]** |
| 59 | + |
| 60 | +If `addr.dwKind` is `ADDRESS_KIND_METADATA_LOCAL` and if `addr.addr.addrLocal.pLocal` is not a null value, then you must call `Release` on the token pointer: |
| 61 | + |
| 62 | +``` |
| 63 | +if (addr.dwKind == ADDRESS_KIND_METADATA_LOCAL && addr.addr.addrLocal.pLocal != NULL) |
| 64 | +{ |
| 65 | + addr.addr.addrLocal.pLocal->Release(); |
| 66 | +} |
| 67 | +``` |
| 68 | + |
| 69 | +## Requirements |
| 70 | +Header: sh.h |
| 71 | + |
| 72 | +Namespace: Microsoft.VisualStudio.Debugger.Interop |
| 73 | + |
| 74 | +Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
| 75 | + |
| 76 | +## See Also |
| 77 | +[Structures and Unions](../../../extensibility/debugger/reference/structures-and-unions.md) |
| 78 | +[GetAddress](../../../extensibility/debugger/reference/idebugaddress-getaddress.md) |
| 79 | +[DEBUG_ADDRESS_UNION](../../../extensibility/debugger/reference/debug-address-union.md) |
| 80 | +[ADDRESS_KIND](../../../extensibility/debugger/reference/address-kind.md) |
0 commit comments