PeekNamedPipe method

int PeekNamedPipe(
  1. Pointer<Void> hNamedPipe,
  2. Pointer<Void> lpBuffer,
  3. int nBufferSize,
  4. Pointer<Uint64> lpBytesRead,
  5. Pointer<Uint64> lpTotalBytesAvail,
  6. Pointer<Uint64> lpBytesLeftThisMessage,
)

Implementation

int PeekNamedPipe(
  ffi.Pointer<ffi.Void> hNamedPipe,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nBufferSize,
  ffi.Pointer<ffi.Uint64> lpBytesRead,
  ffi.Pointer<ffi.Uint64> lpTotalBytesAvail,
  ffi.Pointer<ffi.Uint64> lpBytesLeftThisMessage,
) {
  return (_PeekNamedPipe ??=
      _dylib.lookupFunction<_c_PeekNamedPipe, _dart_PeekNamedPipe>(
          'PeekNamedPipe'))(
    hNamedPipe,
    lpBuffer,
    nBufferSize,
    lpBytesRead,
    lpTotalBytesAvail,
    lpBytesLeftThisMessage,
  );
}