Rev | Line | |
---|
[2804] | 1 | /* $Id: oslibdos.cpp,v 1.4 2000-02-16 14:34:25 sandervl Exp $ */
|
---|
[2469] | 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 |
|
---|
[2804] | 21 | #define DBG_LOCALLOG DBG_oslibdos
|
---|
| 22 | #include "dbglocal.h"
|
---|
| 23 |
|
---|
[2469] | 24 | //******************************************************************************
|
---|
| 25 | //Map shared memory into our address space
|
---|
| 26 | //******************************************************************************
|
---|
| 27 | DWORD OSLibDosGetSharedMem(PVOID addr, DWORD size, DWORD flags)
|
---|
| 28 | {
|
---|
| 29 | DWORD os2flags = 0, rangesize, rangeflags;
|
---|
| 30 |
|
---|
| 31 | if(flags & OSLIB_PAG_READ)
|
---|
| 32 | os2flags |= PAG_READ;
|
---|
| 33 | if(flags & OSLIB_PAG_WRITE)
|
---|
| 34 | os2flags |= PAG_WRITE;
|
---|
| 35 |
|
---|
| 36 | return DosGetSharedMem(addr, os2flags);
|
---|
| 37 | }
|
---|
| 38 | //******************************************************************************
|
---|
| 39 | //******************************************************************************
|
---|
| 40 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.