Changeset 7293 for trunk/src/kernel32/hmnpipe.cpp
- Timestamp:
- Nov 7, 2001, 4:35:37 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmnpipe.cpp
r5587 r7293 1 /* $Id: hmnpipe.cpp,v 1. 2 2001-04-26 13:22:46sandervl Exp $ */1 /* $Id: hmnpipe.cpp,v 1.3 2001-11-07 15:35:37 sandervl Exp $ */ 2 2 /* 3 3 * Project Odin Software License can be found in LICENSE.TXT … … 34 34 #endif 35 35 36 /***************************************************************************** 37 Register PIPE device class 38 *****************************************************************************/ 39 HMDeviceNamedPipeClass::HMDeviceNamedPipeClass(LPCSTR lpDeviceName) : HMDeviceFileClass(lpDeviceName) 40 { 41 HMDeviceRegisterEx("\\\\.\\PIPE", this, NULL); 42 } 43 /***************************************************************************** 44 * Name : HMDeviceNamedPipeClass::FindDevice 45 * Purpose : Checks if lpDeviceName belongs to this device class 46 * Parameters: LPCSTR lpClassDevName 47 * LPCSTR lpDeviceName 48 * int namelength 49 * Variables : 50 * Result : 51 * Remark : 52 * Status : 53 * 54 * Author : SvL 55 *****************************************************************************/ 56 BOOL HMDeviceNamedPipeClass::FindDevice(LPCSTR lpClassDevName, LPCSTR lpDeviceName, int namelength) 57 { 58 if(lstrncmpiA("\\\\.\\PIPE\\", lpDeviceName, 9) == 0) { 59 return TRUE; 60 } 61 return FALSE; 62 } 36 63 //****************************************************************************** 37 64 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.