CreateConsoleScreenBuffer method

Pointer<Void> CreateConsoleScreenBuffer(
  1. int dwDesiredAccess,
  2. int dwShareMode,
  3. Pointer<LPSECURITY_ATTRIBUTES> lpSecurityAttributes,
  4. int dwFlags,
  5. Pointer<Void> lpScreenBufferData,
)

Implementation

ffi.Pointer<ffi.Void> CreateConsoleScreenBuffer(
  int dwDesiredAccess,
  int dwShareMode,
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpSecurityAttributes,
  int dwFlags,
  ffi.Pointer<ffi.Void> lpScreenBufferData,
) {
  return (_CreateConsoleScreenBuffer ??= _dylib.lookupFunction<
      _c_CreateConsoleScreenBuffer,
      _dart_CreateConsoleScreenBuffer>('CreateConsoleScreenBuffer'))(
    dwDesiredAccess,
    dwShareMode,
    lpSecurityAttributes,
    dwFlags,
    lpScreenBufferData,
  );
}