Код: Выделить всё
string pdbFilePath = "Taskbar.pdb";
long pdbFileSize = File.OpenRead(pdbFilePath).Length;
nint hProcess = GetCurrentProcess();
if (!SymInitialize(hProcess, pdbFilePath, false))
{
Console.WriteLine($"hProcess() failed: {Marshal.GetLastWin32Error()}");
return;
}
uint dllBase = 0x10000000;
SymLoadModuleEx(
hProcess,
0,
pdbFilePath,
null,
(ulong)dllBase,
(uint)pdbFileSize,
0,
0
);
SymEnumSymbols(hProcess, dllBase, null, (ref SYMBOL_INFO info, uint size, nint ctx) =>
{
Console.WriteLine($"[ NAME ]: {info.Name}");
return true;
}, 0);
Подробнее здесь: https://stackoverflow.com/questions/797 ... -using-pdb