CallNamedPipe function kernel32
int
CallNamedPipe(
- Pointer<
Utf16> lpNamedPipeName, - Pointer<
NativeType> lpInBuffer, - int nInBufferSize,
- Pointer<
NativeType> lpOutBuffer, - int nOutBufferSize,
- Pointer<
Uint32> lpBytesRead, - int nTimeOut,
Connects to a message-type pipe (and waits if an instance of the pipe is not available), writes to and reads from the pipe, and then closes the pipe.
BOOL CallNamedPipeW(
LPCWSTR lpNamedPipeName,
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
LPDWORD lpBytesRead,
DWORD nTimeOut
);
Implementation
int CallNamedPipe(
Pointer<Utf16> lpNamedPipeName,
Pointer lpInBuffer,
int nInBufferSize,
Pointer lpOutBuffer,
int nOutBufferSize,
Pointer<Uint32> lpBytesRead,
int nTimeOut) =>
_CallNamedPipe(lpNamedPipeName, lpInBuffer, nInBufferSize, lpOutBuffer,
nOutBufferSize, lpBytesRead, nTimeOut);