Cygwin: FIFO: use FILE_PIPE_REJECT_REMOTE_CLIENTS flag

Add that flag to the pipe type argument when creating the Windows
named pipe.  And add a definition of that flag to ntdll.h (copied from
/usr/include/w32api/ddk/ntifs.h).
This commit is contained in:
Ken Brown
2019-12-21 17:53:52 -05:00
parent b42d565150
commit 3bc79b275e
2 changed files with 4 additions and 2 deletions

View File

@@ -557,7 +557,8 @@ enum
enum
{
FILE_PIPE_BYTE_STREAM_TYPE = 0,
FILE_PIPE_MESSAGE_TYPE = 1
FILE_PIPE_MESSAGE_TYPE = 1,
FILE_PIPE_REJECT_REMOTE_CLIENTS = 2
};
typedef struct _FILE_PIPE_PEEK_BUFFER {