|
Last change
on this file since 4950 was 4787, checked in by bird, 25 years ago |
|
Changed email address... (may some dll fixes changes too.)
|
|
File size:
1.5 KB
|
| Line | |
|---|
| 1 | /* $Id: libTerm.c,v 1.3 2000-12-11 06:53:54 bird Exp $
|
|---|
| 2 | *
|
|---|
| 3 | * Terminates the Win32k library functions.
|
|---|
| 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 | /*******************************************************************************
|
|---|
| 13 | * Header Files *
|
|---|
| 14 | *******************************************************************************/
|
|---|
| 15 | #define INCL_DOSERRORS
|
|---|
| 16 | #define INCL_DOSFILEMGR
|
|---|
| 17 | #define INCL_DOSDEVICES
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | /*******************************************************************************
|
|---|
| 21 | * Internal Functions *
|
|---|
| 22 | *******************************************************************************/
|
|---|
| 23 | #include <os2.h>
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | /*******************************************************************************
|
|---|
| 27 | * Global Variables *
|
|---|
| 28 | *******************************************************************************/
|
|---|
| 29 | extern BOOL fInited;
|
|---|
| 30 | extern HFILE hWin32k;
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | /**
|
|---|
| 34 | * Initiates the library.
|
|---|
| 35 | * @returns OS/2 return code.
|
|---|
| 36 | * @status completely implemented.
|
|---|
| 37 | * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no)
|
|---|
| 38 | */
|
|---|
| 39 | APIRET APIENTRY libWin32kTerm(void)
|
|---|
| 40 | {
|
|---|
| 41 | APIRET rc = NO_ERROR;
|
|---|
| 42 |
|
|---|
| 43 | if (fInited)
|
|---|
| 44 | rc = DosClose(hWin32k);
|
|---|
| 45 |
|
|---|
| 46 | if (rc == NO_ERROR)
|
|---|
| 47 | {
|
|---|
| 48 | hWin32k = NULLHANDLE;
|
|---|
| 49 | fInited = FALSE;
|
|---|
| 50 | }
|
|---|
| 51 | return rc;
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.