Original Post
Hi!
I'm trying to get the symbols of a certain process by using the SymFromAddr method but even though I initialized it and as far as I know I use as I should, it keeps returning false...
this is my code:
first I initialize:
bool ok = SymInitialize(m_processHandle, NULL, FALSE);
and then I do this:
Does anybody know what's wrong with it?
thanks :)
I'm trying to get the symbols of a certain process by using the SymFromAddr method but even though I initialized it and as far as I know I use as I should, it keeps returning false...
this is my code:
first I initialize:
bool ok = SymInitialize(m_processHandle, NULL, FALSE);
and then I do this:
char buffer[sizeof(SYMBOL_INFO) + MAX_SYM_NAME * sizeof(TCHAR)]; memset(&buffer, 0,sizeof(SYMBOL_INFO) + MAX_SYM_NAME * sizeof(TCHAR)); PSYMBOL_INFO pSymbol = (PSYMBOL_INFO)buffer; pSymbol->SizeOfStruct = sizeof(SYMBOL_INFO); pSymbol->MaxNameLen = MAX_SYM_NAME; bool ok = SymFromAddr(m_processHandle, m_stackframe.AddrPC.Offset, &displacement, pSymbol);Does anybody know what's wrong with it?
thanks :)