source: trunk/src/kernel32/HMObjects.cpp@ 278

Last change on this file since 278 was 278, checked in by phaller, 26 years ago

Add: HandleManager support for kernel objects, various fixes

File size: 2.4 KB
Line 
1/* $Id: HMObjects.cpp,v 1.1 1999-07-06 15:48:45 phaller Exp $ */
2
3/*
4 * Project Odin Software License can be found in LICENSE.TXT
5 * Win32 Unified Handle Manager for OS/2
6 * Copyright 1999 Patrick Haller (haller@zebra.fh-weingarten.de)
7 */
8
9#undef DEBUG_LOCAL
10//#define DEBUG_LOCAL
11
12
13/*****************************************************************************
14 * Remark *
15 *****************************************************************************
16
17 */
18
19
20/*****************************************************************************
21 * Includes *
22 *****************************************************************************/
23
24#include <os2win.h>
25#include <stdlib.h>
26#include <string.h>
27#include "unicode.h"
28#include "misc.h"
29
30#include "HandleManager.H"
31#include "HMObjects.h"
32
33
34/*****************************************************************************
35 * Defines *
36 *****************************************************************************/
37
38/*****************************************************************************
39 * Structures *
40 *****************************************************************************/
41
42/*****************************************************************************
43 * Local Prototypes *
44 *****************************************************************************/
45
46
47
48/*****************************************************************************
49 * Name : DWORD HMDeviceKernelObjectClass::CloseHandle
50 * Purpose : close the handle
51 * Parameters: PHMHANDLEDATA pHMHandleData
52 * Variables :
53 * Result : API returncode
54 * Remark :
55 * Status :
56 *
57 * Author : Patrick Haller [Wed, 1998/02/11 20:44]
58 *****************************************************************************/
59
60DWORD HMDeviceKernelObjectClass::CloseHandle(PHMHANDLEDATA pHMHandleData)
61{
62 BOOL bRC;
63
64 dprintf(("KERNEL32: HandleManager::KernelObject::CloseHandle(%08x)\n",
65 pHMHandleData->hHMHandle));
66
67 bRC = O32_CloseHandle(pHMHandleData->hHMHandle);
68
69 dprintf(("KERNEL32: HandleManager::KernelObject::CloseHandle returned %08xh\n",
70 bRC));
71
72 return (DWORD)bRC;
73}
74
Note: See TracBrowser for help on using the repository browser.