The AllocMem callback function allocates memory to a buffer. Any memory allocated with this function will automatically be freed when the net session ends.
BOOL WINAPI * AllocMem(
struct _HTTP_FILTER_CONTEXT * pfc,
DWORD cbSize,
DWORD dwReserved
);