Commits or decommits a range of pages within a memory object, or alters their access protection.
#define INCL_DOSMEMMGR #include <os2.h> PVOID pb; /* The base address of the range of pages whose attributes are to be changed. */ ULONG cb; /* A value specifying the size, in bytes, of the region whose attributes are to be changed. */ ULONG flag; /* A set of flags specifying commitment or decommitment, and desired access protection, for the specified range of pages. */ APIRET ulrc; /* Return Code. */ ulrc = DosSetMem(pb, cb, flag);