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! (But: On CODESYS Control RTE the shared memory object is created if not existing. Not a bug, due to historical reason.)
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):