Skip to content

Commit 0c7e209

Browse files
Merge pull request #428 from GameTechDev/feature/local-pipe-only
create all pipes with remote access rejected
2 parents b25a696 + 42fa94b commit 0c7e209

File tree

1 file changed

+3
-3
lines changed
  • IntelPresentMon/CommonUtilities/pipe

1 file changed

+3
-3
lines changed

IntelPresentMon/CommonUtilities/pipe/Pipe.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ namespace pmon::util::pipe
156156
// create the named pipe and retain the handle in a wrapper object
157157
win::Handle handle(CreateNamedPipeA(
158158
name.c_str(),
159-
PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, // open mode
160-
PIPE_TYPE_BYTE | PIPE_READMODE_BYTE, // pipe mode
161-
PIPE_UNLIMITED_INSTANCES, // max instances
159+
PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, // open mode
160+
PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_REJECT_REMOTE_CLIENTS, // pipe mode
161+
PIPE_UNLIMITED_INSTANCES, // max instances
162162
4096, // out buffer
163163
4096, // in buffer
164164
0, // timeout

0 commit comments

Comments
 (0)