This command can be use to create or attach to an area of shared memory. The shared memory is available system-wide using the name specified.
If the shared memory already exists, then the preferred size parameter is ignored, and the bank is automatically opened to the actual size of the shared memory. Your code should always check to ensure that the size of the bank is large enough for its use.
Within Windows, the size used when creating a shared memory area is rounded up to the nearest 4k (i.e. requesting a share of 1 byte in size will create a shared of 4k). |