00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #define INCL_BASE
00013 #define INCL_DOSEXCEPTIONS
00014 #define INCL_DOSMEMMGR
00015 #define INCL_DOSPROCESS
00016 #include <os2wrap.h>
00017 #include <win32type.h>
00018 #include <misc.h>
00019 #include "oslibdos.h"
00020
00021 #define DBG_LOCALLOG DBG_oslibdos
00022 #include "dbglocal.h"
00023
00024
00025
00026
00027 DWORD OSLibDosGetSharedMem(PVOID addr, DWORD size, DWORD flags)
00028 {
00029 DWORD os2flags = 0, rangesize, rangeflags;
00030
00031 if(flags & OSLIB_PAG_READ)
00032 os2flags |= PAG_READ;
00033 if(flags & OSLIB_PAG_WRITE)
00034 os2flags |= PAG_WRITE;
00035
00036 return DosGetSharedMem(addr, os2flags);
00037 }
00038
00039
00040