SymRegisterCallback64 Function
Registers a callback function for use by the symbol handler.
This function supersedes the SymRegisterCallback function. For more information, see Updated Platform Support.
BOOL WINAPI SymRegisterCallback64( __in HANDLE hProcess, __in PSYMBOL_REGISTERED_CALLBACK64 CallbackFunction, __in ULONG64 UserContext );
Parameters
- hProcess
-
A handle to the process that was originally passed to the SymInitialize function.
- CallbackFunction
-
A SymRegisterCallbackProc64 callback function.
- UserContext
-
A user-defined value or NULL. This value is simply passed 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 context.
Return Value
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.
Remarks
The SymRegisterCallback64 function lets an application register a callback function for use by the symbol handler. The symbol handler calls the registered callback function when there is status or progress information for the application.
All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.
To call the Unicode version of this function, define DBGHELP_TRANSLATE_TCHAR.
Requirements
Redistributable |
Requires DbgHelp.dll 5.1 or later. |
---|---|
Header |
Declared in Dbghelp.h. |
Library |
Use Dbghelp.lib. |
DLL |
Requires Dbghelp.dll. |
Unicode |
Implemented as SymRegisterCallbackW64 (Unicode) and SymRegisterCallback64 (ANSI). |
See Also
DbgHelp FunctionsSymRegisterCallbackProc64
SymInitialize
Send comments about this topic to Microsoft
Build date: 9/25/2007
© 2007 Microsoft Corporation. All rights reserved.