pb (PVOID) - input
pid (PID) - input
flag (ULONG) - input
A set of attribute flags that specify the desired access protection for the shared memory object.
Desired Access Protection
The following access protections are available:
At least one of the bits, PAG_READ, PAG_WRITE, or PAG_EXECUTE must be specified.
ulrc (APIRET) - returns
DosGiveSharedMem returns one of the following values: