SysSharedMemoryOpen2 (FUN)

FUNCTION SysSharedMemoryOpen2 : RTS_IEC_HANDLE

Opens an existing shared memory object specified by name.

NOTE: If shared memory object not exists, an error code is returned an it is not created!

RETURN: Handle to the shared memory object or RTS_INVALID_HANDLE if failed

InOut:

Scope

Name

Type

Comment

Return

SysSharedMemoryOpen2

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):