AllocMem - ISAPI connection-specific memory allocation.
#include "httpfilt.h" HTTP_FILTER_CONTEXT *pfc; DWORD Size; DWORD Reserved = 0; LPVOID buffer = pfc->AllocMem( pfc, Size, Reserved );
AllocMem allocates an area of memory large enough to hold Size bytes and returns a pointer to the start-address of the area of memory allocated. This memory will be reclaimed automatically when the web request identified by pfc is completed.
The pfc parameter provides AllocMem with the context for its allocation. The Reserved parameter is ignored, but may be given a meaning in later versions of this specification.
The Size parameter indicates the number of bytes of memory to be allocated.
Returns 0 (the NULL pointer) on failure; otherwise, a pointer to Size bytes of memory.
isapi(7),
HttpFilterProc(3),
HTTP_FILTER_CONTEXT(5).
$ZEUSHOME/web/include/httpfilt.h $ZEUSHOME/web/include/wintypes.h $ZEUSHOME/webadmin/docroot/docs/modules/isapi/*.html
Copyright (C) 2000-2001 Zeus Technology Limited. All rights reserved.