| Line |  | 
|---|
| 1 | /* $Id: oslibdos.cpp,v 1.3 2000-01-01 14:57:18 cbratschi Exp $ */ | 
|---|
| 2 | /* | 
|---|
| 3 | * Dos* api wrappers for OS/2 | 
|---|
| 4 | * | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl) | 
|---|
| 7 | * | 
|---|
| 8 | * | 
|---|
| 9 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 10 | * | 
|---|
| 11 | */ | 
|---|
| 12 | #define INCL_BASE | 
|---|
| 13 | #define INCL_DOSEXCEPTIONS | 
|---|
| 14 | #define INCL_DOSMEMMGR | 
|---|
| 15 | #define INCL_DOSPROCESS | 
|---|
| 16 | #include <os2wrap.h> | 
|---|
| 17 | #include <win32type.h> | 
|---|
| 18 | #include <misc.h> | 
|---|
| 19 | #include "oslibdos.h" | 
|---|
| 20 |  | 
|---|
| 21 | //****************************************************************************** | 
|---|
| 22 | //Map shared memory into our address space | 
|---|
| 23 | //****************************************************************************** | 
|---|
| 24 | DWORD OSLibDosGetSharedMem(PVOID addr, DWORD size, DWORD flags) | 
|---|
| 25 | { | 
|---|
| 26 | DWORD os2flags = 0, rangesize, rangeflags; | 
|---|
| 27 |  | 
|---|
| 28 | if(flags & OSLIB_PAG_READ) | 
|---|
| 29 | os2flags |= PAG_READ; | 
|---|
| 30 | if(flags & OSLIB_PAG_WRITE) | 
|---|
| 31 | os2flags |= PAG_WRITE; | 
|---|
| 32 |  | 
|---|
| 33 | return DosGetSharedMem(addr, os2flags); | 
|---|
| 34 | } | 
|---|
| 35 | //****************************************************************************** | 
|---|
| 36 | //****************************************************************************** | 
|---|
| 37 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.