I am trying to use SymGetTypenfo() with little success. The code is my my callback for SymEnumSymbols(). And it always fails. I have tried various combinations for the params based on things I have seen on the internet but nothing seems to be working. here is the line of code result = SymGetTypeInfo( m_hProcess, pSymInfo->ModBase, pSymInfo- >TypeIndex, TI_GET_SYMTAG, &tag ); As mentioned i have tried many variations on the params, including various "TI_" The error from GetLastError() is always the same 0x80070057 ("The Parameter is incorrect"). Any assistance would be greatly appreciated.
On Jun 25, 8:28 am, mors...@gmail.com wrote: > I am trying to use SymGetTypenfo() with little success. > > The code is my my callback for SymEnumSymbols(). And it always > fails. I have tried various combinations for the params based on > things I have seen on the internet but nothing seems to be working. > > here is the line of code > result = SymGetTypeInfo( m_hProcess, pSymInfo->ModBase, pSymInfo- > > >TypeIndex, TI_GET_SYMTAG, &tag ); > > As mentioned i have tried many variations on the params, including > various "TI_" > > The error from GetLastError() is always the same 0x80070057 ("The > Parameter is incorrect"). > > Any assistance would be greatly appreciated. Some more information... I am in the SymEnumSymbols() callback. m_hProcess is the same handle provided to symInit(). In the current case, it happens to be the return value of GetCurrentProcess(); pSymInfo is the SYMBOL_INFO passed to the callback by DbgHelp