Gives another process access to a shared memory object.

#define INCL_DOSMEMMGR
#include <os2.h>

PVOID     pb;    /*  The base virtual address of the giveable shared memory object as assigned by DosAllocSharedMem. */
PID       pid;   /*  The identifier of the target process that is to receive access to the shared memory object. */
ULONG     flag;  /*  Access protection flags. */
APIRET    ulrc;  /*  Return Code. */

ulrc = DosGiveSharedMem(pb, pid, flag);


[Back] [Next]