Named Pipes Connection
Hey everybody! I'm trying to support Windows in a project and I'm trying to connected to the Discord named pipe (an IPC server) that runs on Windows when the Discord client is open.
So far I did this (and a bit more but this is not the point):
My issue is first two params of
NamedPipeClientStream
, I haven't find what I should put there or show it should look, the .Net documentation about this class is not very explanatory. So in this state it catches The specified path is invalid
but if I change the first param to @".\pipe"
the program gets stuck in pipe.Connect()
(but it is still possible to quit with ^C
).
If anybody knows how to do this please help :) I'm a Linux femboy, not a windows pro7 Replies
does it connect if you fix the typo of the pipe name?
what do you mean by "typo of the pipe name"`
iscord -> discord
no. Still
The specified path is invalid
And I am sure this is the pipe's name
try with server name "." and pipe name "discord-ipc-0"
Wow it works. I think I already tried it before, but now it works :)
I didn't know the first param was for server name
Thank you