Platform SDK: Debugging and Error Handling

DbgHelp Functions

The following are the DbgHelp functions.

General

The following are general helper functions:

ImagehlpApiVersion
ImagehlpApiVersionEx
MakeSureDirectoryPathExists
SearchTreeForFile

Debugger

The debugging service functions are the functions most suited for use by a debugger or the debugging code in an application. These functions can be used in concert with the symbol handler functions for easier use.

EnumerateLoadedModules
EnumLoadedModulesProc
FindDebugFileProc
FindDebugInfoFile
FindDebugInfoFileEx
FindExecutableImage
FindExecutableImageEx
FindExeFileProc
FunctionTableAccessProc
GetModuleBaseProc
ReadProcessMemoryProc
StackWalk
TranslateAddressProc
UnDecorateSymbolName

Image Access

The image access functions access the data in an executable image. The functions provide high-level access to the base of images and very specific access to the most common parts of an image's data.

GetTimestampForLoadedLibrary
ImageDirectoryEntryToData
ImageDirectoryEntryToDataEx
ImageNtHeader
ImageRvaToSection
ImageRvaToVa

Symbol Handler

The symbol handler functions give applications easy and portable access to the symbolic debugging information of an image. These functions should be used exclusively to ensure access to symbolic information. This is necessary because these functions isolate the application from the symbol format.

SymbolRegisteredCallback
SymbolRegisteredFunctionEntryCallback
SymCleanup
SymEnumerateModules
SymEnumerateSymbols
SymEnumModulesCallback
SymEnumSymbolsCallback
SymFunctionTableAccess
SymGetLineFromAddr
SymGetLineFromName
SymGetLineNext
SymGetLinePrev
SymGetModuleBase
SymGetModuleInfo
SymGetModuleInfoEx
SymGetOptions
SymGetSearchPath
SymGetSymbolInfo
SymGetSymFromAddr
SymGetSymFromName
SymGetSymNext
SymGetSymPrev
SymInitialize
SymLoadModule
SymMatchFileName
SymRegisterCallback
SymRegisterFunctionEntryCallback
SymSetOptions
SymSetSearchPath
SymTypeNameCallback
SymUnDName
SymUnloadModule