ReactOS 0.4.15-dev-8632-gbc8c7d1
|
#include <CPipe.h>
Public Member Functions | |
CPipe () | |
~CPipe () | |
void | CloseReadPipe () |
void | CloseWritePipe () |
bool | Peek (PVOID Buffer, DWORD BufferSize, PDWORD BytesRead, PDWORD TotalBytesAvailable) |
DWORD | Read (PVOID Buffer, DWORD NumberOfBytesToRead, PDWORD NumberOfBytesRead, DWORD TimeoutMilliseconds) |
bool | Write (LPCVOID Buffer, DWORD NumberOfBytesToWrite, PDWORD NumberOfBytesWritten) |
Private Attributes | |
OVERLAPPED | m_ReadOverlapped |
HANDLE | m_hReadPipe |
HANDLE | m_hWritePipe |
Static Private Attributes | |
static LONG | m_lPipeCount = 0 |
Friends | |
class | CPipedProcess |
CPipe::CPipe | ( | ) |
Constructs a CPipe object and initializes read and write handles.
Definition at line 17 of file CPipe.cpp.
CPipe::~CPipe | ( | ) |
void CPipe::CloseReadPipe | ( | ) |
void CPipe::CloseWritePipe | ( | ) |
Reads data from a pipe without advancing the read offset and/or retrieves information about available data.
This function must not be called after CloseReadPipe.
Buffer | An optional buffer to read pipe data into. |
BufferSize | The size of the buffer specified in Buffer, or 0 if no read should be performed. |
BytesRead | On return, the number of bytes actually read from the pipe into Buffer. |
TotalBytesAvailable | On return, the total number of bytes available to read from the pipe. |
Definition at line 129 of file CPipe.cpp.
DWORD CPipe::Read | ( | PVOID | Buffer, |
DWORD | NumberOfBytesToRead, | ||
PDWORD | NumberOfBytesRead, | ||
DWORD | TimeoutMilliseconds | ||
) |
Reads data from the read pipe, advancing the read offset accordingly.
This function must not be called after CloseReadPipe.
Buffer | Buffer to read pipe data into. |
NumberOfBytesToRead | The number of bytes to read into Buffer. |
NumberOfBytesRead | On return, the number of bytes actually read from the pipe into Buffer. |
Definition at line 160 of file CPipe.cpp.
Writes data to the write pipe.
This function must not be called after CloseWritePipe.
Buffer | Buffer containing the data to write. |
NumberOfBytesToWrite | The number of bytes to write to the pipe from Buffer. |
NumberOfBytesWritten | On return, the number of bytes actually written to the pipe. |
Definition at line 232 of file CPipe.cpp.
|
friend |
|
private |
|
private |
|
staticprivate |
|
private |