source: trunk/src/win32k/lib/libTerm.c@ 2904

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

Win32k library.

File size: 1.5 KB
Line 
1/* $Id: libTerm.c,v 1.2 2000-02-26 17:48:23 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_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*******************************************************************************/
29extern BOOL fInited;
30extern 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 */
39APIRET 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.