| 1 | /* $Id: k32AllocMemEx.cpp,v 1.1 2000-02-15 23:39:58 bird Exp $
|
|---|
| 2 | *
|
|---|
| 3 | * k32AllocMemEx - Equivalent to DosAllocMem, but this one
|
|---|
| 4 | * uses the address in ppv.
|
|---|
| 5 | *
|
|---|
| 6 | * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
|
|---|
| 7 | *
|
|---|
| 8 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 9 | *
|
|---|
| 10 | */
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | /*******************************************************************************
|
|---|
| 14 | * Defined Constants And Macros *
|
|---|
| 15 | *******************************************************************************/
|
|---|
| 16 | #define INCL_DOSMEMMGR
|
|---|
| 17 | #define INCL_DOSERRORS
|
|---|
| 18 | #define INCL_OS2KRNL_VM
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | /*******************************************************************************
|
|---|
| 22 | * Header Files *
|
|---|
| 23 | *******************************************************************************/
|
|---|
| 24 | #include <os2.h>
|
|---|
| 25 | #include "OS2Krnl.h"
|
|---|
| 26 | #include "k32.h"
|
|---|
| 27 | #include "options.h"
|
|---|
| 28 | #include "dev32.h"
|
|---|
| 29 | #include "log.h"
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | /**
|
|---|
| 35 | * Extended edition of DosAllocMem. Allows you to suggest an address where you
|
|---|
| 36 | * want the memory allocated.
|
|---|
| 37 | * @returns OS2 returncode.
|
|---|
| 38 | * @param ppv Pointer to a pointer. This points to a pointer which points to the
|
|---|
| 39 | * suggested address of the memory block.
|
|---|
| 40 | * @param cb Size of the memory block.
|
|---|
| 41 | * @param flag Flags just as for DosAllocMem.
|
|---|
| 42 | * @param ulCS CS where the memoryobject were requested.
|
|---|
| 43 | * @param ulEIP EIP where the memoryobject were requested.
|
|---|
| 44 | * @sketch
|
|---|
| 45 | * @status stub
|
|---|
| 46 | * @author knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
|
|---|
| 47 | * @remark
|
|---|
| 48 | */
|
|---|
| 49 | APIRET k32AllocMemEx(PPVOID ppv, ULONG cb, ULONG flag, ULONG ulCS, ULONG ulEIP)
|
|---|
| 50 | {
|
|---|
| 51 |
|
|---|
| 52 | ppv = ppv;
|
|---|
| 53 | cb = cb;
|
|---|
| 54 | flag = flag;
|
|---|
| 55 | ulCS = ulCS;
|
|---|
| 56 | ulEIP = ulEIP;
|
|---|
| 57 |
|
|---|
| 58 | return ERROR_NOT_SUPPORTED;
|
|---|
| 59 | }
|
|---|
| 60 |
|
|---|