Changeset 6646 for trunk/src/kernel32/hmmailslot.cpp
- Timestamp:
- Sep 5, 2001, 2:58:00 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmmailslot.cpp
r5587 r6646 1 /* 1 /* $Id: hmmailslot.cpp,v 1.2 2001-09-05 12:57:58 bird Exp $ 2 * 2 3 * Win32 mailslot APIs 3 4 * … … 22 23 #include "dbglocal.h" 23 24 24 HMMailSlotInfo::HMMailSlotInfo(LPCSTR lpszName, HANDLE hPipe, DWORD nMaxMessageSize, 25 HMMailSlotInfo::HMMailSlotInfo(LPCSTR lpszName, HANDLE hPipe, DWORD nMaxMessageSize, 25 26 DWORD lReadTimeout, BOOL fServer, 26 27 LPSECURITY_ATTRIBUTES lpSecurityAttributes) … … 129 130 strcat(pipename, lpName); 130 131 //TODO: lookup name and fail if exists 131 hPipe = CreateNamedPipeA(pipename, PIPE_ACCESS_INBOUND, 132 PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_NOWAIT, 133 PIPE_UNLIMITED_INSTANCES, MAILSLOT_SIZE, 134 (nMaxMessageSize) ? nMaxMessageSize : MAILSLOT_SIZE, 132 hPipe = CreateNamedPipeA(pipename, PIPE_ACCESS_INBOUND, 133 PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_NOWAIT, 134 PIPE_UNLIMITED_INSTANCES, MAILSLOT_SIZE, 135 (nMaxMessageSize) ? nMaxMessageSize : MAILSLOT_SIZE, 135 136 lReadTimeout, lpSecurityAttributes); 136 137 137 if(hPipe == INVALID_HANDLE_VALUE) { 138 if(hPipe == INVALID_HANDLE_VALUE) { 138 139 dprintf(("CreateMailslotA: unable to create pipe %s", pipename)); 139 140 return FALSE; … … 146 147 } 147 148 else 148 if(lReadTimeout != 0) { 149 if(lReadTimeout != 0) { 149 150 dprintf(("WARNING: timeout %x not supported", lReadTimeout)); 150 151 } … … 168 169 * Variables : 169 170 * Result : 170 * Remark : 171 * Remark : 171 172 * Status : NO_ERROR - API succeeded 172 173 * other - what is to be set in SetLastError … … 202 203 pHMHandleData->dwFlags, 0); 203 204 204 if(hPipe == INVALID_HANDLE_VALUE) { 205 if(hPipe == INVALID_HANDLE_VALUE) { 205 206 if(pipename[11] == '*') { 206 207 dprintf(("pipename with asterix not supported; connect only to one mailslot"));
Note:
See TracChangeset
for help on using the changeset viewer.