I want to get the pointer that can be put into SymGetSymFromAddr() so I can
get to the name of my function.
I was thinking something like:
void testFunc()
{
SymGetSymFromAddr(GetCurrentProcess(), (DWORD)&testFunc,
&symDisplacement, pSymbol);
}
But obviously, &testFunc just isn't good enough. How do I find the correct
pointer?
Thanks.
Shouldn't it just be testFunc?
(i.e.
SymGetSymFromAddr(
GetCurrentProcess(),
(DWORD)testFunc,
symDisplacement,
pSymbol);
)
Damian
"Damian Driscoll" <dam...@dialsolutions.nospam.co.uk> wrote in message
news:971965564.27547.0...@news.demon.co.uk...
Well, I still reckon it's right.
Try doing the reverse by using SymGetSymFromName and looking at its address.
It's also possible that your other parameter values are incorrect which
would cause it to fail regardless of whether your address is correct. Try
looking up the value returned from GetLastError() after calling
SymGetSymFromAddr() to see where the problem lies.
Damian