PowerShell Named Pipe: no connection?
问题 I need a named pipe to read and write. In a program I create the pipe server using from kernel32.dll : string PipeName = "\\\\.\\pipe\\myMT4"; int PipeMode = PIPE_TYPE_MESSAGE|PIPE_READMODE_MESSAGE|PIPE_WAIT; # tried too: PIPE_NOWAIT int hPipe = CreateNamedPipeW( PipeName, PIPE_ACCESS_DUPLEX, PipeMode, PIPE_UNLIMITED_INSTANCES,1024,1024, NMPWAIT_USE_DEFAULT_WAIT,NULL); The handle hPipe is valid - every things seems to be ok here! But in a PowerShell-script I want to open a client, connect and