source: trunk/src/user32/oslibdos.cpp

Last change on this file was 2804, checked in by sandervl, 26 years ago

Added new logging feature

File size: 1.1 KB
Line 
1/* $Id: oslibdos.cpp,v 1.4 2000-02-16 14:34:25 sandervl 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#define DBG_LOCALLOG DBG_oslibdos
22#include "dbglocal.h"
23
24//******************************************************************************
25//Map shared memory into our address space
26//******************************************************************************
27DWORD 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.