| 1 | /* $Id: HMObjects.cpp,v 1.2 2000-02-16 14:24:00 sandervl 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 | #define DBG_LOCALLOG    DBG_hmobjects | 
|---|
| 34 | #include "dbglocal.h" | 
|---|
| 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 |  | 
|---|
| 62 | DWORD HMDeviceKernelObjectClass::CloseHandle(PHMHANDLEDATA pHMHandleData) | 
|---|
| 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 |  | 
|---|
| 74 | return (DWORD)bRC; | 
|---|
| 75 | } | 
|---|
| 76 |  | 
|---|