named-pipes

Can you explain in more detail what's the difference between PIPE_READMODE_MESSAGE/PIPE_READMODE_BYTE?

Though I've go through the document here, it still doesn't make sense to me what it is: Data is read from the pipe as a stream of messages. This mode can be only used if PIPE_TYPE_MESSAGE is also specified. ...

About the PeekMessage in c++

PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) If hWnd is NULL, PeekMessage retrieves messages for any window that belongs to the current thread, and any messages on the current thread's message queue whose hwnd value is NULL (see the MSG structure). Therefore if hWnd is NULL, both window messages and thread messages are pro...

Can named pipe names have backslashes?

According to MSDN, [The pipe name] must have the following form: \\.\pipe\pipename The pipename part of the name can include any character other than a backslash, including numbers and special characters. The entire pipe name string can be up to 256 characters long. Pipe names are not case sensitive. But the...

Getting GLE=5 (Access Denied ) Error While creating Named Pipe

I have tried creating a named pipe but getting GLE 5 (access denied Error) #include <windows.h> #include <stdio.h> #include <conio.h> #include <tchar.h> #include "iostream.h" //#define PIPE_ACCESS_DUPLEX 0x00000003 //#define PIPE_ACCESS_INBOUND 0x00000001 //#define PIPE_ACCESS_OUTBOUND 0x00000002 #define BUFSIZE 512 int main() { ...

Java Printing API / Jasper Reports keep pipes and deleted temp files opened

Using JDK6u21, JasperReports 3.7.4 and Tomcat 5.5.30. Running "lsof" command on linux (debian) for my tomcat process is normal until the application start using the printing API / jasper reports. After the application tries to print something or simply listing the network printers these are returned for "lsof": java 2398 root 3931r ...

How Can I access Windows Service Object by Another Programme

I have a windows service which is creating a Named Pipe in it's service main Function. The code snippet is below: void WINAPI ServiceMain(DWORD argc, LPTSTR *argv) { DWORD status; DWORD specificError; m_ServiceStatus.dwServiceType = SERVICE_WIN32; m_ServiceStatus.dwCurrentState = SERVICE_START_PENDING; m_ServiceStatus.dwContro...

Not getting any Response from Named Pipe Server

I have created a NamedPipe inside a Windows Service and starting the Service Manually or as the System Starts up. EDIT: lpszPipename = TEXT("\\\\.\\pipe\\1stPipe"); OVERLAPPED m_OverLaped; HANDLE hEvent; hPipe=CreateNamedPipe (lpszPipename, PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, PIPE_...

About pipe behavior in windows

hPipe = CreateNamedPipe( lpszPipename, // pipe name PIPE_ACCESS_DUPLEX, // read/write access PIPE_TYPE_MESSAGE | // message type pipe PIPE_READMODE_MESSAGE | // message-read mode PIPE_WAIT, // blocking mode PIPE_UNLIMITED_INSTAN...

Getting Access Denied While Accessing the Named Pipe from Another System

I have a Named Pipe and It Works Fine While I access it using a Client which runs on My System The Client tries to open the File using following code: LPTSTR lpszPipename = TEXT("\\\\smyServerName\\pipe\\iPipe01"); hPipe = CreateFile( lpszPipename, // pipe name GENERIC_READ | // read and write access ...

ActiveRecord to use mysql named pipes on windows

Hi Is it possible to connect from ruby/ActiveRecord to a mysql database over named pipes. OS is Windows. Thanks. ...

Is it possible to open a named pipe with command line in windows?

I want to interact with the pipe manually , but so far I can only do this in the programe,which is not very intuitive. The effect I want to achieve is a little similar to : telnet localhost 3306 tail -f file.txt Anyone get my idea? ...

How to check the remaining buffer size of pipe in windows in c/c++?

BTW the remaining buffer will automatically increase if the other side reads data out of it,right? ...

Is there a inbuilt mechanism so that bytes writen to the pipe can overwrite earlier bytes if buffer is not enough?

Pretty much like a queue,when the queue is full an new member wants to come in,just remove the first member at the head of the queue. Is there such a default mechanism in windows? If yes how can I do that in c/c++? ...

PeekNamedPipe always returns 0 for totalBytesAvailable

PeekNamedPipe( tmp_pipe, // __in HANDLE hNamedPipe, NULL, // __out_opt LPVOID lpBuffer, 0, // __in DWORD nBufferSize, NULL, // __out_opt LPDWORD lpBytesRead, &totalBytesAvailable, // __out_opt LPDWORD lpTotalBytesAvail, NU...

JAVA IPC on Windows

hey all , i want to do the following open a Named pipe using java , and extract the content of that archive (rar / zip /etc..) to a named pipe the run mplayer with the location of that pipe and play the movie , i tried open the IPC in java using this project CLIPC but , my code is freezing in the fifo.openWriter(); line FIFO fifo ...

WCF Named pipe message size problems

I am trying to get working a WCF named pipe communication between two processes on the same computer (on XP), but I am having trouble with "large" messages disappearing. The messages that disappear contain a largish byte array and I have narrowed the failure down to when the array is around 16k in size. Smaller than that and the messag...

Logging console using NamedPipe throws UnauthorizedAccessException

I am trying to create a class that can display debug string in a separate console than the program that uses it, either a form or another console. The idea is to have your program run normally, but have all the debug messages in another console. Since a process can only have one console at a time, I start my debug console in another proc...

How to awake and enable clients of .NET Remoting server for fetch data asynchronously?

Hello, I need to perform inter process communication using .NET Remoting. For this I would share some data in form of Data(Objects) & Methods . Is there any way out by which my .NET Remoting client can detect that there's some data that is being shared or not, if its just go on and collect that data.Each time server server shares the d...

Named Pipes from VB6 to WCF

Can I have a VB6 app call a named pipe connection to a service written in C# with a WCF endpoint? The VB6 project that makes use of named pipes to talk to a service written in C++. I would like to convert the C++ service to C# (.NET 4.0 preferably). The VB6 project uses a Win32 call to CallNamedPipes to send a message to the server. ...

Is it possible to discover named pipes in Windows?

Is there any method or tool that list existing named pipes in a Windows box? ...