The SymEnumerateSymbols function enumerates all the symbols for a specified module.
BOOL SymEnumerateSymbols(
IN HANDLE hProcess, | |
IN DWORD BaseOfDll, | |
IN PSYM_ENUMSYMBOLS_CALLBACK EnumSymbolsCallback, | |
IN PVOID UserContext | |
); |
Parameters
hProcess
The process handle that was originally passed to SymInitialize.
BaseOfDll
The base address of the module for which symbol enumeration is to take place.
EnumSymbolsCallback
A pointer to the callback function that receives the symbol information.
UserContext
A user-defined value or NULL. This value is simply passed through to the callback function. Normally, this parameter is used by an application to pass a pointer to a data structure that lets the callback function establish some type of context.
Return Values
If the function succeeds, the return value is TRUE.
If the function fails, then the return value is FALSE. To retrieve extended error information, call GetLastError.
Remarks
The SymEnumerateSymbols function enumerates all the symbols for a desired module. The module information is located by the BaseOfDll parameter. The EnumSymbolsCallback function is called once per symbol and is passed the information for each symbol.