SysSharedMemoryCreate (FUN)

FUNCTION SysSharedMemoryCreate : RTS_IEC_HANDLE

Create a new shared memory object specified by name. NOTE: If the shared memory object still exists, a valid handle is returned, but with the error code ERR_DUPLICATE. RETURN: Handle to the shared memory object or RTS_INVALID_HANDLE if failed

InOut:

Scope

Name

Type

Comment

Return

SysSharedMemoryCreate

RTS_IEC_HANDLE

Inout Const

pszName

STRING

Name of the shared memory

Input

ulPhysicalAddress

__UXINT

Optional physical address.

pulSize

POINTER TO __UXINT

Pointer to requested size of the shared memory.

pResult

POINTER TO RTS_IEC_RESULT

Pointer to runtime system error code (see CmpErrors.library):