source: trunk/src/win32k/lib/libTest.c@ 3832

Last change on this file since 3832 was 2915, checked in by bird, 26 years ago

Some corrections and a test program.

File size: 1.3 KB
Line 
1/* $Id: libTest.c,v 1.1 2000-02-26 20:19:26 bird Exp $
2 *
3 * Test program for the win32k library.
4 *
5 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.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_WIN32K_LIB
15#define INCL_BASE
16
17/*******************************************************************************
18* Internal Functions *
19*******************************************************************************/
20#include <os2.h>
21#include <stdio.h>
22#include "win32k.h"
23
24
25
26int main(void)
27{
28 APIRET rc;
29
30 rc = libWin32kInit();
31 printf("libWin32Init returned %d\n", rc);
32
33 /* this next test is currently disabled! */
34 rc = 1;
35 if (rc == NO_ERROR)
36 {
37 PVOID pv = (PVOID)0x80000;
38 rc = DosAllocMemEx(&pv, 0x1000, PAG_READ | PAG_WRITE);
39 printf("DosAllocMemEx returned %d, pv=0x%08x (was=0x00080000)\n", rc, pv);
40 }
41
42 rc = libWin32kTerm();
43 printf("libWin32kTerm returned %d\n", rc);
44 return rc;
45}
Note: See TracBrowser for help on using the repository browser.