ppb (PPVOID) - output
OS/2 determines where to allocate the virtual address for the shared memory object.
pszName (PSZ) - input
The name is an ASCIIZ string in the format of an OS/2 file name, and is in the subdirectory, \SHAREMEM\; for example, \SHAREMEM\PUBLIC.DAT.
To allocate unnamed shared memory, set this parameter to NULL. If you want to use unnamed shared memory, the flag parameter must include either OBJ_GETTABLE or OBJ_GIVEABLE.
cb (ULONG) - input
The size is rounded up to the next page-size boundary. The size of a page is 4KB.
flag (ULONG) - input
A set of flags describing the allocation attributes and desired access protection for the shared memory object. Possible values are shown in the following lists:
Allocation Attributes
PAG_COMMIT (0x00000010)
The 16-bit selectors are allocated to map the 32-bit object at 64KB boundaries. The figure in the description of the Parameters for DosAllocMem shows how the 16-bit alias selectors map the 32-bit object. Desired Access Protection
ulrc (APIRET) - returns
DosAllocSharedMem returns one of the following values: