Allocates a block of memory that is unique, or local, to a thread.

#define INCL_DOSPROCESS
#include <os2.h>

ULONG       cb;  /*  Number of 4-byte DWORDs to allocate. */
PULONG     *p;   /*  Address of the memory block returned by the function. */
APIRET      rc;  /*  Return Code. */

rc = DosAllocThreadLocalMemory(cb, p);


[Back] [Next]