_CrtGetReportHook

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _CrtGetReportHook.

Retrieves the client-defined reporting function for hooking it into the C run time for the debug reporting process (debug version only).

Syntax

_CRT_REPORT_HOOK _CrtGetReportHook( void );  

Return Value

Returns the current client-defined reporting function.

Remarks

_CrtGetReportHook allows an application to retrieve the current reporting function for the C run-time debug library reporting process.

For more information about using other hook-capable run-time functions and writing your own client-defined hook functions, see Debug Hook Function Writing.

Requirements

Routine Required header
_CrtGetReportHook <crtdbg.h>

For more compatibility information, see Compatibility in the Introduction.

Libraries

Debug versions of C run-time libraries only.

Example

For a sample of how to use _CrtSetReportHook, see report.

.NET Framework Equivalent

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

See Also

Debug Routines
_CrtSetReportHook