CallNamedPipe function kernel32
bool
CallNamedPipe(
- PCWSTR 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.
To learn more, see learn.microsoft.com/windows/win32/api/namedpipeapi/nf-namedpipeapi-callnamedpipew.
Implementation
@pragma('vm:prefer-inline')
bool CallNamedPipe(
PCWSTR lpNamedPipeName,
Pointer? lpInBuffer,
int nInBufferSize,
Pointer? lpOutBuffer,
int nOutBufferSize,
Pointer<Uint32> lpBytesRead,
int nTimeOut,
) =>
_CallNamedPipe(
lpNamedPipeName,
lpInBuffer ?? nullptr,
nInBufferSize,
lpOutBuffer ?? nullptr,
nOutBufferSize,
lpBytesRead,
nTimeOut,
) !=
FALSE;