-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProgram.cs
More file actions
46 lines (37 loc) · 1.33 KB
/
Program.cs
File metadata and controls
46 lines (37 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dia2Lib;
namespace pdbViewer
{
class Program
{
static IDiaSession ses;
static void printChild(IDiaSymbol parent)
{
IDiaEnumSymbols results;
ses.findChildren(parent, SymTagEnum.SymTagData,null, 0, out results);
foreach (IDiaSymbol item in results)
{
Console.WriteLine("child : " + item.name + " value: " + item.value + " type: " + item.typeId);
// if(item.ch
}
}
static void Main(string[] args)
{
DiaSourceClass dia = new DiaSourceClass();
dia.loadDataFromPdb("C:\\Tools\\PdbXtract\\symbols-145681151\\urlmon.pdb\\3C06174675704A15A73021639ED654792\\urlmon.pdb");
dia.openSession(out ses);
//IDiaSymbol sym;
IDiaEnumSymbols results; //__MIDL___MIDL_itf_browsermode_0000_0000_0002
ses.findChildren(ses.globalScope, SymTagEnum.SymTagEnum, "__MIDL*browsermode*", 8|2|0x10, out results);
foreach (IDiaSymbol item in results)
{
Console.WriteLine("name : " + item.name );
printChild(item);
}
//ses.symbolById(0x2e, out sym);
}
}
}