How can I guarantee that only my program can access the named pipe?

I plan to divide my program into 2 processes: the first is a graphical interface, and the second is a background process with an administrator account. Both must communicate with each other.

I am thinking about using the named channels for this, but there is one thing that bothers me:

Is there a way to ensure that only my program can access the named pipe?

+5
source share
2 answers

( ) . , ( , , , ).

, , , , , ( ).

, , , , , . .

+3

Windows Vista , Windows API, , ProcessId / SessionID , (, GetNamedPipeClientProcessId ). , , , , .

+2

All Articles