INtime SDK Help
_CrtSetAllocHook
INtime SDK v7 > About INtime > Other system libraries > Heaps and memory pools > Using the Debug Heap > Writing your own debug hook functions > _CrtSetAllocHook

Installs a client-defined allocation function by hooking it into the C runtime debug memory allocation process (debug version only).

_CRT_ALLOC_HOOK _CrtSetAllocHook (
     _CRT_ALLOC_HOOK pfnNewHook
);

Parameters

pfnNewHook
New client-defined allocation function to hook into the C runtime debug memory allocation process.

Return Values

The previously defined allocation hook function
Success.
NULL
Failure; the value of pfnNewHook is NULL.

Requirements

Versions Defined in Include Link to
INtime 3.13 intime/rt/include/crtdbg.h crtdbg.h clib.lib
   
See Also