AudRecordLib
Functions
alloc.h File Reference

Declarations for functions relating to memory management. More...

#include "exports.h"

Go to the source code of this file.

Functions

PVOID SetAllocFreeFunctionsInternal (pfnAlloc allocFn, pfnFree freeFn, PVOID pData)
BOOL InitialiseAlloc (HMODULE hModule)
void UninitialiseAlloc (HMODULE hModule)
void DisplayOutstandingAllocs ()

Detailed Description

Declarations for functions relating to memory management.


Function Documentation

void DisplayOutstandingAllocs ( )

Displays any unfreed allocations allong with their stack trace via both the ETW debug stream and OutputDebugString

BOOL InitialiseAlloc ( HMODULE  hModule)

Initialises the allocation part of AudRecordLib

Parameters:
hModuleThe HMODULE of the AudRecord dll, unused
Returns:
Whether initialisation was succesful
PVOID SetAllocFreeFunctionsInternal ( pfnAlloc  allocFn,
pfnFree  freeFn,
PVOID  pData 
)

Overrides the default or previous alloc and free functions with user defined versions

Parameters:
allocFnThe allocation function
freeFnThe free function
pDataThe user data to pass to the functions
Returns:
The previous value of the user data, on first call this is the process heap handle
void UninitialiseAlloc ( HMODULE  hModule)

Destroys the allocation info part of AudRecordLib

Parameters:
hModuleThe HMODULE of the AudRecord dll, unused
Returns:
Whether initialisation was succesful
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines