| Last change
 on this file since 7137 was             4787, checked in by bird, 25 years ago | 
        
          | 
Changed email address... (may some dll fixes changes too.)
 | 
        
          | File size:
            1.3 KB | 
      
      
| Line |  | 
|---|
| 1 | /* $Id: libTest.c,v 1.3 2000-12-11 06:53:54 bird Exp $ | 
|---|
| 2 | * | 
|---|
| 3 | * Test program for the win32k library. | 
|---|
| 4 | * | 
|---|
| 5 | * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no) | 
|---|
| 6 | * | 
|---|
| 7 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 8 | * | 
|---|
| 9 | */ | 
|---|
| 10 |  | 
|---|
| 11 | /******************************************************************************* | 
|---|
| 12 | *   Defined Constants And Macros                                               * | 
|---|
| 13 | *******************************************************************************/ | 
|---|
| 14 | #define INCL_BASE | 
|---|
| 15 |  | 
|---|
| 16 | /******************************************************************************* | 
|---|
| 17 | *   Internal Functions                                                         * | 
|---|
| 18 | *******************************************************************************/ | 
|---|
| 19 | #include <os2.h> | 
|---|
| 20 | #include <stdio.h> | 
|---|
| 21 | #include "win32k.h" | 
|---|
| 22 |  | 
|---|
| 23 |  | 
|---|
| 24 |  | 
|---|
| 25 | int main(void) | 
|---|
| 26 | { | 
|---|
| 27 | APIRET rc; | 
|---|
| 28 |  | 
|---|
| 29 | rc = libWin32kInit(); | 
|---|
| 30 | printf("libWin32Init returned %d\n", rc); | 
|---|
| 31 |  | 
|---|
| 32 | /* this next test is currently disabled! */ | 
|---|
| 33 | rc = 1; | 
|---|
| 34 | if (rc == NO_ERROR) | 
|---|
| 35 | { | 
|---|
| 36 | PVOID pv = (PVOID)0x80000; | 
|---|
| 37 | rc = DosAllocMemEx(&pv, 0x1000, PAG_READ | PAG_WRITE); | 
|---|
| 38 | printf("DosAllocMemEx returned %d, pv=0x%08x (was=0x00080000)\n", rc, pv); | 
|---|
| 39 | } | 
|---|
| 40 |  | 
|---|
| 41 | rc = libWin32kTerm(); | 
|---|
| 42 | printf("libWin32kTerm returned %d\n", rc); | 
|---|
| 43 | return rc; | 
|---|
| 44 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.