NAME

AllocMem - ISAPI connection-specific memory allocation.


SYNOPSIS

 #include "httpfilt.h"
 HTTP_FILTER_CONTEXT *pfc;
 DWORD Size;
 DWORD Reserved = 0;
 LPVOID buffer = pfc->AllocMem( pfc, Size, Reserved );


DESCRIPTION

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.

pfc

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.

size

The Size parameter indicates the number of bytes of memory to be allocated.


RETURN

Returns 0 (the NULL pointer) on failure; otherwise, a pointer to Size bytes of memory.


SEE ALSO

isapi(7), HttpFilterProc(3), HTTP_FILTER_CONTEXT(5).


FILES

$ZEUSHOME/web/include/httpfilt.h $ZEUSHOME/web/include/wintypes.h $ZEUSHOME/webadmin/docroot/docs/modules/isapi/*.html


COPYRIGHT

Copyright (C) 2000-2001 Zeus Technology Limited. All rights reserved.