Changeset 5587 for trunk/src/kernel32/hmnpipe.cpp
- Timestamp:
- Apr 26, 2001, 3:22:49 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmnpipe.cpp
r3819 r5587 1 /* $Id: hmnpipe.cpp,v 1. 1 2000-07-12 18:21:43sandervl Exp $ */1 /* $Id: hmnpipe.cpp,v 1.2 2001-04-26 13:22:46 sandervl Exp $ */ 2 2 /* 3 3 * Project Odin Software License can be found in LICENSE.TXT … … 84 84 return (pHMHandleData->hHMHandle); 85 85 } 86 86 /***************************************************************************** 87 * Name : DWORD HMDeviceNamedPipeClass::CreateFile 88 * Purpose : this is called from the handle manager if a CreateFile() is 89 * performed on a handle 90 * Parameters: LPCSTR lpFileName name of the file / device 91 * PHMHANDLEDATA pHMHandleData data of the NEW handle 92 * PVOID lpSecurityAttributes ignored 93 * PHMHANDLEDATA pHMHandleDataTemplate data of the template handle 94 * Variables : 95 * Result : 96 * Remark : 97 * Status : NO_ERROR - API succeeded 98 * other - what is to be set in SetLastError 99 * 100 * Author : SvL 101 *****************************************************************************/ 102 103 DWORD HMDeviceNamedPipeClass::CreateFile (LPCSTR lpFileName, 104 PHMHANDLEDATA pHMHandleData, 105 PVOID lpSecurityAttributes, 106 PHMHANDLEDATA pHMHandleDataTemplate) 107 { 108 pHMHandleData->hHMHandle = OSLibDosOpenPipe(lpFileName, 109 pHMHandleData->dwAccess, 110 pHMHandleData->dwShare, 111 (LPSECURITY_ATTRIBUTES)lpSecurityAttributes, 112 pHMHandleData->dwCreation, 113 pHMHandleData->dwFlags); 114 if(pHMHandleData->hHMHandle == -1) { 115 return GetLastError(); 116 } 117 return ERROR_SUCCESS; 118 } 119 120 /***************************************************************************** 121 * Name : DWORD HMDeviceNamedPipeClass::CloseHandle 122 * Purpose : close the handle 123 * Parameters: PHMHANDLEDATA pHMHandleData 124 * Variables : 125 * Result : API returncode 126 * Remark : 127 * Status : 128 * 129 * Author : SvL 130 *****************************************************************************/ 131 132 BOOL HMDeviceNamedPipeClass::CloseHandle(PHMHANDLEDATA pHMHandleData) 133 { 134 dprintf(("KERNEL32: HMDeviceNamedPipeClass::CloseHandle(%08x)", pHMHandleData->hHMHandle)); 135 136 return OSLibDosClose(pHMHandleData->hHMHandle); 137 } 87 138 //****************************************************************************** 88 139 //****************************************************************************** … … 197 248 LPDWORD lpdwCollectDataTimeout) 198 249 { 199 dprintf(("KERNEL32: HMDeviceNamedPipeClass::SetNamedPipeInfo (%s) (%08xh,%08xh,%08xh) NIY\n", 250 BOOL ret; 251 252 dprintf(("KERNEL32: HMDeviceNamedPipeClass::SetNamedPipeInfo (%s) (%08xh,%08xh,%08xh)", 200 253 lpdwMode,lpcbMaxCollect,lpdwCollectDataTimeout)); 201 254 202 return (FALSE); 255 if(lpdwMode) { 256 ret = OSLibSetNamedPipeState(pHMHandleData->hHMHandle, *lpdwMode); 257 } 258 if(lpcbMaxCollect || lpdwCollectDataTimeout) { 259 dprintf(("WARNING: Not supported -> lpcbMaxCollect & lpdwCollectDataTimeout")); 260 } 261 return ret; 203 262 } 204 263
Note:
See TracChangeset
for help on using the changeset viewer.