INtime SDK Help
ntxAllocateRtMemory
INtime SDK v6 > About INtime > INtime Kernel > Memory management > ntxAllocateRtMemory

Allocates RT memory and returns a handle to the memory object. A subsequest call to ntxMapRtSharedMemoryEx must be made in order to access the memory.  

Note:   You can use ntxFreeRtMemory to deallocate the memory.
NTXHANDLE ntxAllocateRtMemory(
    NTXLOCATION hLoc,
    DWORD nSize
);

Parameters

hLoc
Location of the realtime kernel from which the memory is allocated.
nSize
Size of the allocation in bytes.

Return Values

An NTXHANDLE for the memory object.
Success
NTX_BAD_NTXHANDLE
Function failed.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/nt/include/ntx.h ntx.h ntxext.lib
INtime 4.01 intime/nt/include/ntx.h ntx.h ntxext64.lib (for 64-bit Windows)

See Also

Memory management system calls, ntxMapRtSharedMemoryEx, ntxFreeRtMemory