|
2 | 2 | title: "Constants (Debug Interface Access SDK) | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -dev_langs: |
| 5 | +dev_langs: |
6 | 6 | - "C++"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "constants, DIA SDK"
|
9 | 9 | - "DIA SDK, constants"
|
10 | 10 | ms.assetid: aca4ec77-bc08-4cdd-a6ce-8d4a28ea5ea3
|
11 | 11 | author: "mikejo5000"
|
12 | 12 | ms.author: "mikejo"
|
13 | 13 | manager: jillfra
|
14 |
| -ms.workload: |
| 14 | +ms.workload: |
15 | 15 | - "multiple"
|
16 | 16 | ---
|
17 | 17 | # Constants (Debug Interface Access SDK)
|
18 |
| -These string constants can be used to identify various sections of a program debug database (PDB) file through the DIA SDK. |
19 |
| - |
20 |
| -## Constants |
21 |
| - The following are declared as C/C++ macros. |
22 |
| - |
23 |
| -|Macro|Value| |
24 |
| -|-----------|-----------| |
25 |
| -|`DiaTable_Symbols`|L"Symbols"| |
26 |
| -|`DiaTable_Sections`|L"Sections"| |
27 |
| -|`DiaTable_SrcFiles`|L"SourceFiles"| |
28 |
| -|`DiaTable_LineNums`|L"LineNumbers"| |
29 |
| -|`DiaTable_SegMap`|L"SegmentMap"| |
30 |
| -|`DiaTable_Dbg`|L"Dbg"| |
31 |
| -|`DiaTable_InjSrc`|L"InjectedSource"| |
32 |
| -|`DiaTable_FrameData`|L"FrameData"| |
33 |
| - |
34 |
| -## Example |
35 |
| - Here is an example using one of these symbols: |
36 |
| - |
37 |
| -```C++ |
38 |
| -HRESULT GetSymbolTable(IDiaEnumTables *pEnumTables, IDiaTable **pTable) |
39 |
| -{ |
40 |
| - HRESULT hr; |
41 |
| - VARIANT var; |
42 |
| - var.vt = VT_BSTR; |
43 |
| - var.bstrVal = SysAllocString( DiaTable_Symbols ); |
44 |
| - hr = pEnumTables->Item( var, pTable ); |
45 |
| - return(hr); |
46 |
| -} |
47 |
| -``` |
48 |
| - |
49 |
| -## Requirements |
50 |
| - Header: dia2.h |
51 |
| - |
52 |
| -## See Also |
53 |
| - [Reference](../../debugger/debug-interface-access/debug-interface-access-sdk-reference.md) |
54 |
| - [Enumerations and Structures](../../debugger/debug-interface-access/enumerations-and-structures.md) |
55 |
| - [Interfaces (Debug Interface Access SDK)](../../debugger/debug-interface-access/interfaces-debug-interface-access-sdk.md) |
56 |
| - [IDiaEnumTables::Item](../../debugger/debug-interface-access/idiaenumtables-item.md) |
| 18 | +These string constants can be used to identify various sections of a program debug database (PDB) file through the DIA SDK. |
| 19 | + |
| 20 | +## Constants |
| 21 | +The following are declared as C/C++ macros. |
| 22 | + |
| 23 | +|Macro|Value| |
| 24 | +|-----------|-----------| |
| 25 | +|`DiaTable_Symbols`|L"Symbols"| |
| 26 | +|`DiaTable_Sections`|L"Sections"| |
| 27 | +|`DiaTable_SrcFiles`|L"SourceFiles"| |
| 28 | +|`DiaTable_LineNums`|L"LineNumbers"| |
| 29 | +|`DiaTable_SegMap`|L"SegmentMap"| |
| 30 | +|`DiaTable_Dbg`|L"Dbg"| |
| 31 | +|`DiaTable_InjSrc`|L"InjectedSource"| |
| 32 | +|`DiaTable_FrameData`|L"FrameData"| |
| 33 | + |
| 34 | +## Example |
| 35 | +Here is an example using one of these symbols: |
| 36 | + |
| 37 | +```C++ |
| 38 | +HRESULT GetSymbolTable(IDiaEnumTables *pEnumTables, IDiaTable **pTable) |
| 39 | +{ |
| 40 | + HRESULT hr; |
| 41 | + VARIANT var; |
| 42 | + var.vt = VT_BSTR; |
| 43 | + var.bstrVal = SysAllocString( DiaTable_Symbols ); |
| 44 | + hr = pEnumTables->Item( var, pTable ); |
| 45 | + return(hr); |
| 46 | +} |
| 47 | +``` |
| 48 | +
|
| 49 | +## Requirements |
| 50 | +Header: dia2.h |
| 51 | +
|
| 52 | +## See Also |
| 53 | +[Reference](../../debugger/debug-interface-access/debug-interface-access-sdk-reference.md) |
| 54 | +[Enumerations and Structures](../../debugger/debug-interface-access/enumerations-and-structures.md) |
| 55 | +[Interfaces (Debug Interface Access SDK)](../../debugger/debug-interface-access/interfaces-debug-interface-access-sdk.md) |
| 56 | +[IDiaEnumTables::Item](../../debugger/debug-interface-access/idiaenumtables-item.md) |
0 commit comments