Line | |
---|
1 | /* $Id: libTerm.c,v 1.1 2000-02-19 16:52:38 bird Exp $
|
---|
2 | *
|
---|
3 | * Terminates the Win32k library functions.
|
---|
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 | /*******************************************************************************
|
---|
13 | * Header Files *
|
---|
14 | *******************************************************************************/
|
---|
15 | #define INCL_DOSERROR
|
---|
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 static 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@pmsc.no)
|
---|
38 | */
|
---|
39 | APIRET APIENTRY libWin32kTerm(void)
|
---|
40 | {
|
---|
41 | if (fInited)
|
---|
42 | DosClose(hWin32k);
|
---|
43 | hWin32k = NULLHANDLE;
|
---|
44 | fInited = FALSE;
|
---|
45 | return NO_ERROR;
|
---|
46 | }
|
---|
47 |
|
---|
48 |
|
---|
49 |
|
---|
50 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.