Ignore:
Timestamp:
Sep 5, 2001, 2:58:00 PM (24 years ago)
Author:
bird
Message:

Added $Id:$ keyword.

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 *
    23 * Win32 mailslot APIs
    34 *
     
    2223#include "dbglocal.h"
    2324
    24 HMMailSlotInfo::HMMailSlotInfo(LPCSTR lpszName, HANDLE hPipe, DWORD nMaxMessageSize, 
     25HMMailSlotInfo::HMMailSlotInfo(LPCSTR lpszName, HANDLE hPipe, DWORD nMaxMessageSize,
    2526                               DWORD lReadTimeout, BOOL fServer,
    2627                               LPSECURITY_ATTRIBUTES lpSecurityAttributes)
     
    129130  strcat(pipename, lpName);
    130131  //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,
    135136                           lReadTimeout, lpSecurityAttributes);
    136137
    137   if(hPipe == INVALID_HANDLE_VALUE) { 
     138  if(hPipe == INVALID_HANDLE_VALUE) {
    138139      dprintf(("CreateMailslotA: unable to create pipe %s", pipename));
    139140      return FALSE;
     
    146147  }
    147148  else
    148   if(lReadTimeout != 0) { 
     149  if(lReadTimeout != 0) {
    149150     dprintf(("WARNING: timeout %x not supported", lReadTimeout));
    150151  }
     
    168169 * Variables :
    169170 * Result    :
    170  * Remark    : 
     171 * Remark    :
    171172 * Status    : NO_ERROR - API succeeded
    172173 *             other    - what is to be set in SetLastError
     
    202203                        pHMHandleData->dwFlags, 0);
    203204
    204   if(hPipe == INVALID_HANDLE_VALUE) { 
     205  if(hPipe == INVALID_HANDLE_VALUE) {
    205206      if(pipename[11] == '*') {
    206207          dprintf(("pipename with asterix not supported; connect only to one mailslot"));
Note: See TracChangeset for help on using the changeset viewer.