BOOL SymGetModuleInfo(
IN HANDLE hProcess, | |
IN DWORD dwAddr, | |
OUT PIMAGEHLP_MODULE ModuleInfo | |
); |
Parameters
hProcess
The process handle that was originally passed to SymInitialize.
dwAddr
The valid, virtual address that is contained in one of the modules loaded by SymLoadModule.
ModuleInfo
A pointer to an IMAGEHLP_MODULE structure. The SizeOfStruct member must be set to the size of the IMAGEHLP_MODULE structure. An invalid value will result in an error.
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 module table is searched for a module that contains the dwAddr. The module is located based on the load address and size of each module. If a valid module is found, the ModuleInfo parameter is filled with the information about the module.