---
UID: NS:dbghelp._tagADDRESS
title: ADDRESS (dbghelp.h)
description: Represents an address. It is used in the STACKFRAME64 structure.
old-location: base\address64_str.htm
tech.root: Debug
ms.assetid: f49249e5-ef02-4e1f-9c08-1c7fe25ee71c
ms.date: 12/05/2018
ms.keywords: '*LPADDRESS, ADDRESS, ADDRESS structure, ADDRESS64, ADDRESS64 structure, AddrMode1616, AddrMode1632, AddrModeFlat, AddrModeReal, LPADDRESS64, LPADDRESS64 structure pointer, _tagADDRESS64, _win32_address64_str, base.address64_str, dbghelp/ADDRESS64, dbghelp/LPADDRESS64'
f1_keywords:
- dbghelp/ADDRESS64
dev_langs:
- c++
req.header: dbghelp.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- HeaderDef
api_location:
- DbgHelp.h
api_name:
- ADDRESS64
- ADDRESS
targetos: Windows
req.typenames: ADDRESS, *LPADDRESS
req.redist: DbgHelp.dll 5.1 or later
ms.custom: 19H1
---

# ADDRESS structure


## -description


Represents an address. It is used in the 
<a href="https://docs.microsoft.com/windows/desktop/api/dbghelp/ns-dbghelp-stackframe">STACKFRAME64</a> structure.


## -struct-fields




### -field Offset

The offset into the segment, or a 32-bit virtual address. The interpretation of this value depends on the value contained in the <b>Mode</b> member.


### -field Segment

The segment number. This value is used only for 16-bit addressing.


### -field Mode

The addressing mode. This member can be one of the following values. 



<table>
<tr>
<th>Value</th>
<th>Meaning</th>
</tr>
<tr>
<td width="40%"><a id="AddrMode1616"></a><a id="addrmode1616"></a><a id="ADDRMODE1616"></a><dl>
<dt><b>AddrMode1616</b></dt>
<dt>0</dt>
</dl>
</td>
<td width="60%">
16:16 addressing. To support this addressing mode, you must supply a 
<a href="https://docs.microsoft.com/windows/desktop/api/dbghelp/nc-dbghelp-ptranslate_address_routine">TranslateAddressProc64</a> callback function.

</td>
</tr>
<tr>
<td width="40%"><a id="AddrMode1632"></a><a id="addrmode1632"></a><a id="ADDRMODE1632"></a><dl>
<dt><b>AddrMode1632</b></dt>
<dt>1</dt>
</dl>
</td>
<td width="60%">
16:32 addressing. To support this addressing mode, you must supply a 
<a href="https://docs.microsoft.com/windows/desktop/api/dbghelp/nc-dbghelp-ptranslate_address_routine">TranslateAddressProc64</a> callback function.

</td>
</tr>
<tr>
<td width="40%"><a id="AddrModeReal"></a><a id="addrmodereal"></a><a id="ADDRMODEREAL"></a><dl>
<dt><b>AddrModeReal</b></dt>
<dt>2</dt>
</dl>
</td>
<td width="60%">
Real-mode addressing. To support this addressing mode, you must supply a 
<a href="https://docs.microsoft.com/windows/desktop/api/dbghelp/nc-dbghelp-ptranslate_address_routine">TranslateAddressProc64</a> callback function.

</td>
</tr>
<tr>
<td width="40%"><a id="AddrModeFlat"></a><a id="addrmodeflat"></a><a id="ADDRMODEFLAT"></a><dl>
<dt><b>AddrModeFlat</b></dt>
<dt>3</dt>
</dl>
</td>
<td width="60%">
Flat addressing. This is the only addressing mode supported by the library.

</td>
</tr>
</table>
 


## -remarks



This structure supersedes the <b>ADDRESS</b> structure. For more information, see 
<a href="https://docs.microsoft.com/windows/desktop/Debug/updated-platform-support">Updated Platform Support</a>. <b>ADDRESS</b> is defined as follows in DbgHelp.h. 


```cpp
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define ADDRESS ADDRESS64
#define LPADDRESS LPADDRESS64
#else
typedef struct _tagADDRESS {
    DWORD         Offset;
    WORD          Segment;
    ADDRESS_MODE  Mode;
} ADDRESS, *LPADDRESS;
#endif
```





## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/dbghelp/ns-dbghelp-stackframe">STACKFRAME64</a>
 

 

