SysShmOpen

This function of type DWORD opens a Shared Memory. It returns a handle for the ShM, which can be used as a pointer. The handle is required as input parameter for the other library functions.

Variable Data Type Description
stName STRING Name of the Shared Memory, can be set as desired dwPhysicalAddress DWORD
dwPhysicalAddress DWORD

Set here one of the following:

- the desired physical address of the ShM; must be valid!

- 0, if the location of the ShM area can be arbitrary pdwSize DWORD

pdwSize DWORD

Address of size of the area for the ShM

- If the ShM is already existing, the actual size will be returned.

- If the ShM does not yet exist, it will be created according to the given size. If you enter “0” here, the function will fail. Thus the function also can be used to check whether the ShM already has been created.