Ignore:
Timestamp:
Nov 14, 2000, 3:27:04 PM (25 years ago)
Author:
sandervl
Message:

Handlemanager fix (MN), changes for device name lookup, com bugfix (error check) + com class now called for COMx: names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/hmdevice.cpp

    r4285 r4588  
    1 /* $Id: hmdevice.cpp,v 1.23 2000-09-20 21:32:52 hugh Exp $ */
     1/* $Id: hmdevice.cpp,v 1.24 2000-11-14 14:27:00 sandervl Exp $ */
    22
    33/*
     
    2020#include <odin.h>
    2121#include <os2win.h>
     22#include <string.h>
    2223#include <misc.h>
    2324#include "HandleManager.h"
     
    7071}
    7172
     73
     74/*****************************************************************************
     75 * Name      : HMDeviceHandler::FindDevice
     76 * Purpose   : Checks if lpDeviceName belongs to this device class
     77 * Parameters: LPCSTR lpClassDevName
     78 *             LPCSTR lpDeviceName
     79 *             int namelength
     80 * Variables :
     81 * Result    :
     82 * Remark    :
     83 * Status    :
     84 *
     85 * Author    : SvL
     86 *****************************************************************************/
     87BOOL HMDeviceHandler::FindDevice(LPCSTR lpClassDevName, LPCSTR lpDeviceName, int namelength)
     88{
     89    if(stricmp(lpClassDevName, lpDeviceName) == 0) {
     90        return TRUE;
     91    }
     92    return FALSE;
     93}
    7294
    7395/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.