Obtains access to a named shared memory object.

#define INCL_DOSMEMMGR
#include <os2.h>

PPVOID    ppb;      /*  A pointer to a variable that will receive the base address of the shared memory object. */
PSZ       pszName;  /*  The address of the name string associated with the shared memory object. */
ULONG     flag;     /*  A set of attribute flags that specify the desired access protection for the shared memory object. */
APIRET    ulrc;     /*  Return Code. */

ulrc = DosGetNamedSharedMem(ppb, pszName,
         flag);


[Back] [Next]