FillConsoleOutputAttribute function Null safety kernel32
Sets the character attributes for a specified number of character cells, beginning at the specified coordinates in a screen buffer.
BOOL WINAPI FillConsoleOutputAttribute(
_In_ HANDLE hConsoleOutput,
_In_ WORD wAttribute,
_In_ DWORD nLength,
_In_ COORD dwWriteCoord,
_Out_ LPDWORD lpNumberOfAttrsWritten
);
Implementation
int FillConsoleOutputAttribute(int hConsoleOutput, int wAttribute, int nLength,
COORD dwWriteCoord, Pointer<Uint32> lpNumberOfAttrsWritten) {
final _FillConsoleOutputAttribute = _kernel32.lookupFunction<
Int32 Function(IntPtr hConsoleOutput, Uint16 wAttribute, Uint32 nLength,
COORD dwWriteCoord, Pointer<Uint32> lpNumberOfAttrsWritten),
int Function(
int hConsoleOutput,
int wAttribute,
int nLength,
COORD dwWriteCoord,
Pointer<Uint32>
lpNumberOfAttrsWritten)>('FillConsoleOutputAttribute');
return _FillConsoleOutputAttribute(hConsoleOutput, wAttribute, nLength,
dwWriteCoord, lpNumberOfAttrsWritten);
}