[5587] | 1 | /* $Id: HMObjects.cpp,v 1.3 2001-04-26 13:22:42 sandervl Exp $ */
|
---|
[278] | 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 |
|
---|
[2802] | 33 | #define DBG_LOCALLOG DBG_hmobjects
|
---|
| 34 | #include "dbglocal.h"
|
---|
[278] | 35 |
|
---|
| 36 | /*****************************************************************************
|
---|
| 37 | * Defines *
|
---|
| 38 | *****************************************************************************/
|
---|
| 39 |
|
---|
| 40 | /*****************************************************************************
|
---|
| 41 | * Structures *
|
---|
| 42 | *****************************************************************************/
|
---|
| 43 |
|
---|
| 44 | /*****************************************************************************
|
---|
| 45 | * Local Prototypes *
|
---|
| 46 | *****************************************************************************/
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 |
|
---|
| 50 | /*****************************************************************************
|
---|
| 51 | * Name : DWORD HMDeviceKernelObjectClass::CloseHandle
|
---|
| 52 | * Purpose : close the handle
|
---|
| 53 | * Parameters: PHMHANDLEDATA pHMHandleData
|
---|
| 54 | * Variables :
|
---|
| 55 | * Result : API returncode
|
---|
| 56 | * Remark :
|
---|
| 57 | * Status :
|
---|
| 58 | *
|
---|
| 59 | * Author : Patrick Haller [Wed, 1998/02/11 20:44]
|
---|
| 60 | *****************************************************************************/
|
---|
| 61 |
|
---|
[5587] | 62 | BOOL HMDeviceKernelObjectClass::CloseHandle(PHMHANDLEDATA pHMHandleData)
|
---|
[278] | 63 | {
|
---|
| 64 | BOOL bRC;
|
---|
| 65 |
|
---|
| 66 | dprintf(("KERNEL32: HandleManager::KernelObject::CloseHandle(%08x)\n",
|
---|
| 67 | pHMHandleData->hHMHandle));
|
---|
| 68 |
|
---|
| 69 | bRC = O32_CloseHandle(pHMHandleData->hHMHandle);
|
---|
| 70 |
|
---|
| 71 | dprintf(("KERNEL32: HandleManager::KernelObject::CloseHandle returned %08xh\n",
|
---|
| 72 | bRC));
|
---|
| 73 |
|
---|
[5587] | 74 | return bRC;
|
---|
[278] | 75 | }
|
---|
| 76 |
|
---|